tehnicheskoe-zadanie-na-razr/style.css

1392 lines
21 KiB
CSS

:root {
--primary: #4A90E2;
--primary-dark: #357ABD;
--primary-light: #E8F4FD;
--secondary: #5DBCD2;
--accent: #00B8CC;
--text-dark: #1A3A52;
--text-gray: #6B7280;
--bg-light: #F5F7FA;
--white: #FFFFFF;
--success: #10B981;
--warning: #F59E0B;
--danger: #EF4444;
--border: #E5E7EB;
--shadow: 0 1px 3px rgba(0,0,0,0.1);
--shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: var(--bg-light);
color: var(--text-dark);
line-height: 1.6;
}
/* Header */
.header {
background: var(--white);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 100;
box-shadow: var(--shadow);
}
.header-content {
max-width: 1400px;
margin: 0 auto;
padding: 0 24px;
height: 64px;
display: flex;
align-items: center;
gap: 32px;
}
.logo {
display: flex;
align-items: center;
gap: 8px;
font-size: 24px;
font-weight: 700;
color: var(--primary);
}
.logo-icon {
font-size: 28px;
}
.nav {
display: flex;
gap: 4px;
flex: 1;
overflow-x: auto;
}
.nav-link {
padding: 8px 16px;
text-decoration: none;
color: var(--text-gray);
font-size: 14px;
font-weight: 500;
border-radius: 8px;
transition: all 0.2s;
white-space: nowrap;
}
.nav-link:hover {
background: var(--primary-light);
color: var(--primary);
}
.nav-link.active {
background: var(--primary);
color: var(--white);
}
.user-menu {
margin-left: auto;
}
.user-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--white);
cursor: pointer;
transition: all 0.2s;
}
.user-btn:hover {
border-color: var(--primary);
}
.user-avatar {
font-size: 20px;
}
.user-name {
font-size: 14px;
font-weight: 500;
}
/* Main */
.main {
max-width: 1400px;
margin: 0 auto;
padding: 32px 24px;
}
.section {
display: none;
}
.section.active {
display: block;
}
.section-header {
margin-bottom: 32px;
}
.section-header h1 {
font-size: 32px;
font-weight: 700;
color: var(--text-dark);
margin-bottom: 8px;
}
.section-subtitle {
font-size: 16px;
color: var(--text-gray);
}
/* Buttons */
.btn-primary {
background: var(--primary);
color: var(--white);
border: none;
padding: 12px 24px;
border-radius: 8px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-1px);
}
.btn-secondary {
background: var(--white);
color: var(--primary);
border: 1px solid var(--primary);
padding: 12px 24px;
border-radius: 8px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.btn-secondary:hover {
background: var(--primary-light);
}
/* KPI Grid */
.kpi-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 32px;
}
.kpi-card {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
text-align: center;
transition: all 0.2s;
}
.kpi-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.kpi-card.highlight {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: var(--white);
}
.kpi-icon {
font-size: 32px;
margin-bottom: 12px;
}
.kpi-value {
font-size: 36px;
font-weight: 700;
margin-bottom: 4px;
}
.kpi-label {
font-size: 14px;
color: var(--text-gray);
}
.kpi-card.highlight .kpi-label {
color: rgba(255,255,255,0.9);
}
.kpi-trend {
font-size: 13px;
margin-top: 8px;
opacity: 0.9;
}
/* Charts */
.charts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 20px;
margin-bottom: 32px;
}
.chart-card {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
}
.chart-card h3 {
font-size: 18px;
margin-bottom: 16px;
color: var(--text-dark);
}
.chart-placeholder {
height: 250px;
background: var(--bg-light);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-gray);
}
.chart-placeholder canvas {
width: 100% !important;
height: 100% !important;
}
/* Ideas */
.ideas-preview {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
}
.ideas-preview h2 {
font-size: 20px;
margin-bottom: 16px;
}
.ideas-list {
display: grid;
gap: 16px;
}
.idea-card {
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
background: var(--white);
transition: all 0.2s;
}
.idea-card:hover {
border-color: var(--primary);
box-shadow: var(--shadow);
}
.idea-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 12px;
}
.idea-title {
font-size: 18px;
font-weight: 600;
color: var(--text-dark);
}
.idea-status {
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}
.status-new { background: #DBEAFE; color: #1E40AF; }
.status-review { background: #FEF3C7; color: #92400E; }
.status-accepted { background: #D1FAE5; color: #065F46; }
.status-implement { background: #BFDBFE; color: #1E3A8A; }
.status-done { background: #A7F3D0; color: #064E3B; }
.status-rejected { background: #FEE2E2; color: #991B1B; }
.idea-meta {
display: flex;
gap: 16px;
font-size: 13px;
color: var(--text-gray);
margin-bottom: 12px;
}
.idea-description {
font-size: 14px;
color: var(--text-dark);
margin-bottom: 16px;
line-height: 1.5;
}
.idea-actions {
display: flex;
gap: 12px;
align-items: center;
}
.vote-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--white);
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
}
.vote-btn:hover {
border-color: var(--primary);
color: var(--primary);
}
.vote-btn.voted {
background: var(--primary);
color: var(--white);
border-color: var(--primary);
}
.idea-comments {
font-size: 14px;
color: var(--primary);
cursor: pointer;
}
/* Forms */
.feedback-container {
max-width: 700px;
background: var(--white);
padding: 32px;
border-radius: 12px;
box-shadow: var(--shadow);
}
.feedback-form {
display: flex;
flex-direction: column;
gap: 20px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
label {
font-size: 14px;
font-weight: 600;
color: var(--text-dark);
}
input[type="text"],
input[type="email"],
select,
textarea {
padding: 12px 16px;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 15px;
font-family: inherit;
transition: all 0.2s;
}
input:focus,
select:focus,
textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px var(--primary-light);
}
textarea {
resize: vertical;
}
/* Rating input */
.rating-input {
display: flex;
gap: 8px;
}
.rating-star {
font-size: 32px;
color: var(--border);
cursor: pointer;
transition: all 0.2s;
}
.rating-star:hover,
.rating-star.active {
color: #FBBF24;
}
/* Checkbox */
.checkbox-group {
margin-top: 8px;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.checkbox-text {
font-size: 14px;
color: var(--text-gray);
}
/* Success message */
.feedback-success {
text-align: center;
padding: 40px 20px;
}
.success-icon {
width: 80px;
height: 80px;
margin: 0 auto 24px;
background: var(--success);
color: var(--white);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
}
.feedback-success h3 {
font-size: 24px;
margin-bottom: 8px;
}
.feedback-success p {
color: var(--text-gray);
margin-bottom: 24px;
}
/* Ideas container */
.ideas-container {
display: grid;
gap: 20px;
margin-top: 24px;
}
.ideas-filters {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-top: 20px;
}
.filter-btn {
padding: 8px 16px;
border: 1px solid var(--border);
border-radius: 20px;
background: var(--white);
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
}
.filter-btn:hover {
border-color: var(--primary);
}
.filter-btn.active {
background: var(--primary);
color: var(--white);
border-color: var(--primary);
}
/* Adaptation */
.adaptation-blocks {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 32px;
}
.adaptation-card {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
}
.adaptation-card h3 {
font-size: 18px;
margin-bottom: 8px;
}
.adaptation-card p {
color: var(--text-gray);
margin-bottom: 16px;
}
.survey-container {
background: var(--white);
padding: 32px;
border-radius: 12px;
box-shadow: var(--shadow);
max-width: 700px;
}
.survey-container h3 {
margin-bottom: 24px;
}
.survey-rating {
margin: 16px 0;
}
/* Training */
.training-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.training-card {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
}
.training-card h3 {
font-size: 18px;
margin-bottom: 8px;
}
.training-card p {
color: var(--text-gray);
margin-bottom: 16px;
}
/* Discipline */
.discipline-info {
background: var(--white);
padding: 32px;
border-radius: 12px;
box-shadow: var(--shadow);
max-width: 800px;
margin-bottom: 24px;
}
.discipline-info ul {
margin: 16px 0 16px 24px;
color: var(--text-gray);
}
.discipline-info li {
margin-bottom: 8px;
}
.info-note {
margin-top: 20px;
padding: 16px;
background: var(--primary-light);
border-radius: 8px;
color: var(--primary-dark);
font-size: 14px;
}
/* Automation */
.automation-form {
max-width: 700px;
background: var(--white);
padding: 32px;
border-radius: 12px;
box-shadow: var(--shadow);
}
/* Profile */
.profile-container {
display: grid;
gap: 24px;
}
.profile-card {
background: var(--white);
padding: 32px;
border-radius: 12px;
box-shadow: var(--shadow);
text-align: center;
}
.profile-avatar {
font-size: 64px;
margin-bottom: 16px;
}
.profile-card h2 {
font-size: 24px;
margin-bottom: 4px;
}
.profile-dept,
.profile-position,
.profile-tenure {
color: var(--text-gray);
font-size: 15px;
}
.profile-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.stat-item {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
text-align: center;
}
.stat-value {
font-size: 36px;
font-weight: 700;
color: var(--primary);
margin-bottom: 4px;
}
.stat-label {
font-size: 14px;
color: var(--text-gray);
}
.profile-history {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
}
.profile-history h3 {
margin-bottom: 16px;
}
.history-list {
display: grid;
gap: 12px;
}
.history-item {
padding: 16px;
border: 1px solid var(--border);
border-radius: 8px;
}
.history-item-header {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
}
.history-item-title {
font-weight: 600;
}
.history-item-date {
color: var(--text-gray);
font-size: 13px;
}
.history-item-status {
font-size: 13px;
}
/* Analytics */
.analytics-filters {
display: flex;
gap: 12px;
margin-bottom: 24px;
flex-wrap: wrap;
}
.analytics-filters select {
padding: 10px 16px;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 14px;
}
.analytics-grid {
display: grid;
gap: 20px;
}
.analytics-card {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
}
.analytics-card h3 {
font-size: 18px;
margin-bottom: 16px;
}
.analytics-kpi {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 16px;
}
.akpi-item {
padding: 16px;
background: var(--bg-light);
border-radius: 8px;
text-align: center;
}
.akpi-label {
font-size: 13px;
color: var(--text-gray);
display: block;
margin-bottom: 8px;
}
.akpi-value {
font-size: 28px;
font-weight: 700;
color: var(--primary);
}
.chart-large {
height: 300px;
background: var(--bg-light);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
}
.chart-large canvas {
width: 100% !important;
height: 100% !important;
}
.problem-list,
.category-list {
display: grid;
gap: 12px;
}
.problem-item,
.category-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px;
background: var(--bg-light);
border-radius: 8px;
}
.problem-name,
.category-name {
font-size: 14px;
}
.problem-count,
.category-count {
font-weight: 600;
color: var(--primary);
}
/* Motivation */
.motivation-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 32px;
}
.motivation-card {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
text-align: center;
}
.motivation-card.highlight {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: var(--white);
}
.motivation-card h3 {
font-size: 18px;
margin-bottom: 8px;
}
.motivation-card p {
color: var(--text-gray);
margin-bottom: 16px;
font-size: 14px;
}
.motivation-card.highlight p {
color: rgba(255,255,255,0.9);
}
.employee-badge,
.idea-badge {
background: rgba(255,255,255,0.2);
padding: 16px;
border-radius: 8px;
margin-bottom: 16px;
}
.badge-avatar {
font-size: 48px;
margin-bottom: 8px;
}
.badge-name {
font-size: 18px;
font-weight: 600;
margin-bottom: 4px;
}
.badge-dept {
font-size: 14px;
opacity: 0.9;
}
.idea-badge-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 4px;
}
.idea-badge-author {
font-size: 14px;
opacity: 0.9;
}
.thanks-wall {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
margin-top: 24px;
}
.thanks-wall h2 {
font-size: 20px;
margin-bottom: 16px;
}
.thanks-list {
display: grid;
gap: 16px;
}
.thank-card {
border: 1px solid var(--border);
border-radius: 8px;
padding: 16px;
background: var(--bg-light);
}
.thank-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.thank-to {
font-weight: 600;
font-size: 16px;
}
.thank-type {
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
background: var(--primary-light);
color: var(--primary);
}
.thank-reason {
color: var(--text-dark);
margin-bottom: 8px;
}
.thank-meta {
display: flex;
gap: 16px;
font-size: 13px;
color: var(--text-gray);
}
.thank-form {
background: var(--white);
padding: 32px;
border-radius: 12px;
box-shadow: var(--shadow);
margin-top: 24px;
max-width: 600px;
}
.thank-form h3 {
margin-bottom: 20px;
}
/* KPI Employee */
.kpi-employee-card {
background: var(--white);
padding: 32px;
border-radius: 12px;
box-shadow: var(--shadow);
margin-bottom: 24px;
}
.kpi-employee-header {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 32px;
}
.kpi-avatar {
font-size: 64px;
}
.kpi-employee-header h2 {
font-size: 24px;
margin-bottom: 4px;
}
.kpi-dept {
color: var(--text-gray);
}
.kpi-score {
text-align: center;
margin-bottom: 32px;
}
.kpi-circle {
position: relative;
width: 150px;
height: 150px;
margin: 0 auto 16px;
}
.kpi-svg {
width: 100%;
height: 100%;
transform: rotate(-90deg);
}
.kpi-value {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 36px;
font-weight: 700;
color: var(--primary);
}
.kpi-label {
font-size: 16px;
color: var(--text-gray);
}
.kpi-components {
display: grid;
gap: 16px;
max-width: 600px;
margin: 0 auto;
}
.kpi-component {
display: grid;
grid-template-columns: 1fr 80px 50px;
align-items: center;
gap: 12px;
}
.kpi-comp-label {
font-size: 14px;
color: var(--text-gray);
}
.kpi-bar {
height: 8px;
background: var(--border);
border-radius: 4px;
overflow: hidden;
}
.kpi-bar-fill {
height: 100%;
background: var(--primary);
border-radius: 4px;
transition: width 0.3s;
}
.kpi-comp-value {
font-weight: 600;
color: var(--primary);
font-size: 14px;
}
.kpi-dynamics,
.kpi-goals {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
margin-bottom: 24px;
}
.kpi-dynamics h3,
.kpi-goals h3 {
margin-bottom: 16px;
}
.kpi-chart {
height: 250px;
background: var(--bg-light);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
}
.kpi-goals form {
max-width: 600px;
display: flex;
flex-direction: column;
gap: 16px;
}
/* Reserve */
.reserve-info {
margin-bottom: 32px;
}
.reserve-banner {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: var(--white);
padding: 40px;
border-radius: 12px;
text-align: center;
}
.reserve-banner h2 {
font-size: 28px;
margin-bottom: 12px;
}
.reserve-banner p {
font-size: 16px;
margin-bottom: 24px;
opacity: 0.95;
}
.reserve-requirements,
.reserve-program,
.reserve-participants {
background: var(--white);
padding: 24px;
border-radius: 12px;
box-shadow: var(--shadow);
margin-bottom: 24px;
}
.reserve-requirements h3,
.reserve-program h3,
.reserve-participants h3 {
margin-bottom: 20px;
}
.requirements-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 16px;
}
.requirement-card {
background: var(--bg-light);
padding: 20px;
border-radius: 8px;
text-align: center;
}
.req-icon {
font-size: 36px;
margin-bottom: 12px;
}
.req-title {
font-weight: 600;
margin-bottom: 8px;
}
.req-desc {
font-size: 14px;
color: var(--text-gray);
}
.stages-timeline {
display: grid;
gap: 20px;
}
.stage {
display: flex;
gap: 16px;
align-items: flex-start;
}
.stage-dot {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--primary);
color: var(--white);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
flex-shrink: 0;
}
.stage-content h4 {
font-size: 18px;
margin-bottom: 4px;
}
.stage-content p {
color: var(--text-gray);
font-size: 14px;
}
.participants-list {
display: grid;
gap: 16px;
}
.participant-card {
display: flex;
align-items: center;
gap: 16px;
padding: 16px;
border: 1px solid var(--border);
border-radius: 8px;
}
.participant-avatar {
font-size: 40px;
}
.participant-info {
flex: 1;
}
.participant-name {
font-weight: 600;
margin-bottom: 4px;
}
.participant-dept {
font-size: 13px;
color: var(--text-gray);
margin-bottom: 4px;
}
.participant-stage {
font-size: 13px;
color: var(--primary);
}
.participant-progress {
display: flex;
align-items: center;
gap: 12px;
min-width: 120px;
}
.progress-bar {
flex: 1;
height: 8px;
background: var(--border);
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: var(--primary);
border-radius: 4px;
transition: width 0.3s;
}
.reserve-form {
background: var(--white);
padding: 32px;
border-radius: 12px;
box-shadow: var(--shadow);
max-width: 700px;
}
.reserve-form h3 {
margin-bottom: 20px;
}
/* Modal */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}
.modal-content {
background: var(--white);
border-radius: 12px;
width: 100%;
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px;
border-bottom: 1px solid var(--border);
}
.modal-header h2 {
font-size: 20px;
}
.modal-close {
background: none;
border: none;
font-size: 32px;
cursor: pointer;
color: var(--text-gray);
line-height: 1;
}
.modal-close:hover {
color: var(--text-dark);
}
#ideaForm {
padding: 24px;
}
.modal-footer {
display: flex;
gap: 12px;
justify-content: flex-end;
padding: 24px;
border-top: 1px solid var(--border);
}
/* Responsive */
@media (max-width: 768px) {
.header-content {
flex-wrap: wrap;
height: auto;
padding: 16px;
gap: 16px;
}
.nav {
order: 3;
width: 100%;
overflow-x: auto;
}
.main {
padding: 20px 16px;
}
.kpi-grid {
grid-template-columns: repeat(2, 1fr);
}
.kpi-value {
font-size: 28px;
}
.charts-grid {
grid-template-columns: 1fr;
}
.profile-stats {
grid-template-columns: 1fr;
}
.form-row {
grid-template-columns: 1fr;
}
.ideas-filters {
overflow-x: auto;
}
}