/* VEPS Plus Web - Blue/White Theme */
:root {
    --primary-color: #2196F3;
    --secondary-color: #1976D2;
    --accent-color: #64B5F6;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --text-color: #ffffff;
    --text-muted: #E3F2FD;
    --background-color: #0D47A1;
    --card-background: #1565C0;
    --border-color: #42A5F5;
    --shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
    --orange-accent: #FF9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Main Layout */
.main-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--primary-color);
    padding: 20px;
    box-shadow: var(--shadow);
}

.logo h2 {
    color: var(--accent-color);
    margin-bottom: 30px;
    text-align: center;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: var(--secondary-color);
    transform: translateX(5px);
}

.nav-item.active {
    background-color: var(--accent-color);
    color: white;
}

.nav-item i {
    margin-right: 10px;
    font-size: 18px;
}

.content {
    flex: 1;
    padding: 20px;
    background-color: var(--background-color);
}

/* Main Page - Android Style */
.main-page {
    min-height: 100vh;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.main-container {
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.app-title {
    font-size: 28px;
    color: orange;
    margin: 50px 0 0 0;
    font-weight: normal;
}

.navigation-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.nav-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    background-color: #2a7a8a;
    transform: translateY(-2px);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.header h1 {
    color: var(--accent-color);
    font-size: 2.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-logout {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-logout:hover {
    background-color: #c0392b;
}

/* Navigation Buttons */
.navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background-color: var(--card-background);
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.nav-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    background-color: var(--secondary-color);
}

.nav-btn i {
    margin-right: 15px;
    font-size: 24px;
}

/* Login Page - Android Style */
.login-page {
    min-height: 100vh;
    background-color: #0D1B2A;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.login-form {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 40px -25px 0 0;
    border-radius: 25px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto -25px auto;
    position: relative;
    z-index: 3;
    opacity: 0.9;
}

.profile-icon img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.login-title {
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    height: 60px;
    padding: 0 10px;
}

.input-icon {
    width: 25px;
    height: 25px;
    opacity: 0.6;
    margin-right: 15px;
}

.form-input {
    flex: 1;
    background-color: transparent;
    border: none;
    color: #333;
    font-size: 16px;
    outline: none;
}

.form-input::placeholder {
    color: #999;
}

.password-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    margin-left: 10px;
}

.loading-indicator {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b9ab0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.login-button:hover:not(:disabled) {
    background-color: #2a7a8a;
}

.login-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.login-footer {
    width: 100%;
    text-align: center;
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-text {
    color: white;
    font-size: 13px;
    margin: 0;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.btn:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
}

/* Tables */
.table {
    width: 100%;
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-weight: 600;
}

.table tr:hover {
    background-color: var(--secondary-color);
}

/* Status badges */
.status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-одобрено {
    background-color: var(--success-color);
    color: white;
}

.status-отклонено {
    background-color: var(--danger-color);
    color: white;
}

.status-на-рассмотрении {
    background-color: var(--warning-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 15px;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .nav-item {
        white-space: nowrap;
        min-width: 120px;
    }
    
    .navigation {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Background logo for all pages */
.background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.background-logo img {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

/* Timesheet Page Styles */
.timesheet-page {
    min-height: 100vh;
    background: var(--background-color);
    position: relative;
}

.timesheet-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timesheet-stats-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 20px;
    margin: 10px 0 0 0;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timesheet-stats-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    color: white;
    font-size: 20px;
}

.timesheet-stats-text {
    font-weight: 500;
}

.timesheet-stats-hours {
    font-weight: bold;
}

.timesheet-stats-separator {
    color: white;
}

.timesheet-stats-total {
    font-weight: bold;
}

.timesheet-stats-unit {
    color: white;
}

.timesheet-notifications-card, .timesheet-add-card, .timesheet-history-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 0;
    margin: 10px 0 0 0;
    border: 1px solid transparent;
}

.timesheet-notifications-header, .timesheet-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
}

.timesheet-notifications-title, .timesheet-history-title {
    color: white;
    font-size: 20px;
    font-weight: 500;
}

.timesheet-notification-icon {
    width: 15px;
    height: 15px;
    margin-right: 10px;
}

.timesheet-toggle-icon {
    width: 15px;
    height: 15px;
    transition: transform 0.3s ease;
}

.timesheet-toggle-icon.rotated {
    transform: rotate(180deg);
}

.timesheet-notifications-content {
    margin: 10px;
    background: transparent;
    border-radius: 10px 10px 0 0;
}

.timesheet-notifications-table {
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.timesheet-table-header {
    display: grid;
    grid-template-columns: 20fr 14fr 10fr 20fr 36fr;
    background: var(--border-color);
    font-weight: bold;
    color: white;
    font-size: 10px;
}

.timesheet-header-cell {
    padding: 10px;
    text-align: center;
    border-right: 1px solid #404145;
    background: var(--border-color);
}

.timesheet-header-cell:last-child {
    border-right: none;
}

.timesheet-notifications-list {
    max-height: 100px;
    overflow-y: auto;
}

.timesheet-notification-row {
    display: grid;
    grid-template-columns: 20fr 14fr 10fr 20fr 36fr;
    border-bottom: 1px solid #404145;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.timesheet-notification-row:hover {
    background: #404145;
}

.timesheet-notification-cell {
    padding: 10px;
    text-align: center;
    color: white;
    font-size: 10px;
    border-right: 1px solid #404145;
    background: var(--border-color);
}

.timesheet-notification-cell:last-child {
    border-right: none;
}

.timesheet-card-title {
    color: white;
    font-size: 20px;
    text-align: center;
    margin: 10px 0;
}

.timesheet-form-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2px;
    margin: 10px;
}

.timesheet-form-row {
    display: contents;
}

.timesheet-form-label {
    background: var(--border-color);
    color: white;
    font-size: 10px;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timesheet-form-input, .timesheet-form-select, .timesheet-form-textarea {
    background: var(--border-color);
    border: none;
    padding: 10px;
    color: white;
    font-size: 14px;
    text-align: center;
}

.timesheet-form-input:focus, .timesheet-form-select:focus, .timesheet-form-textarea:focus {
    outline: none;
}

.timesheet-form-textarea {
    resize: vertical;
    min-height: 40px;
    text-align: left;
}

.timesheet-checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    padding: 10px;
}

.timesheet-form-checkbox {
    width: 18px;
    height: 18px;
}

.timesheet-submit-button {
    background: var(--border-color);
    color: white;
    border: 2px solid black;
    border-radius: 5px;
    padding: 10px;
    font-size: 10px;
    cursor: pointer;
    margin: 10px;
    width: calc(100% - 20px);
}

.timesheet-submit-button:hover {
    background: #404145;
}

.timesheet-filters-section {
    background: var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
}

.timesheet-filters-grid {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1fr 1fr 1fr;
    gap: 2px;
    margin-bottom: 15px;
}

.timesheet-filter-row {
    display: contents;
}

.timesheet-filter-label {
    background: var(--border-color);
    color: white;
    font-size: 10px;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timesheet-filter-input, .timesheet-filter-select {
    background: var(--border-color);
    border: none;
    padding: 8px;
    color: white;
    font-size: 10px;
    text-align: center;
}

.timesheet-date-range {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    padding: 8px;
    gap: 10px;
}

.timesheet-date-label {
    color: white;
    font-size: 10px;
}

.timesheet-sort-button {
    background: var(--border-color);
    color: white;
    border: 2px solid black;
    border-radius: 5px;
    padding: 10px;
    font-size: 10px;
    cursor: pointer;
    width: 100%;
}

.timesheet-sort-button:hover {
    background: #404145;
}

.timesheet-history-table {
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 10px;
}

.timesheet-history-header-row {
    display: grid;
    grid-template-columns: 3fr 2fr 1.5fr 2fr 4fr 3fr;
    background: var(--border-color);
    font-weight: bold;
    color: white;
    font-size: 10px;
}

.timesheet-history-header-cell {
    padding: 10px;
    text-align: center;
    border-right: 1px solid #404145;
    background: var(--border-color);
}

.timesheet-history-header-cell:last-child {
    border-right: none;
}

.timesheet-history-body {
    max-height: 150px;
    overflow-y: auto;
}

.timesheet-history-row {
    display: grid;
    grid-template-columns: 3fr 2fr 1.5fr 2fr 4fr 3fr;
    border-bottom: 1px solid #404145;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.timesheet-history-row:hover {
    background: #404145;
}

.timesheet-history-row.selected {
    background: #505055;
    border: 1px solid #707075;
}

.timesheet-history-cell {
    padding: 10px;
    text-align: center;
    color: white;
    font-size: 10px;
    border-right: 1px solid #404145;
    background: var(--border-color);
}

.timesheet-history-cell:last-child {
    border-right: none;
}

.timesheet-action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px;
}

.timesheet-approve-button, .timesheet-reject-button {
    background: var(--border-color);
    color: white;
    border: 2px solid black;
    border-radius: 5px;
    padding: 10px;
    font-size: 10px;
    cursor: pointer;
    width: 100px;
}

.timesheet-approve-button:hover, .timesheet-reject-button:hover {
    background: #404145;
}

/* Fuel Page Styles */
.fuel-page {
    min-height: 100vh;
    background: var(--background-color);
    position: relative;
}

.fuel-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.add-fuel-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fuel-label {
    font-size: 16px;
    color: white;
    margin: 0;
}

.fuel-input-container {
    background: #2C2D31;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fuel-input, .fuel-select {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
    flex: 1;
}

.fuel-input::placeholder {
    color: #999;
}

.fuel-unit {
    color: white;
    font-size: 16px;
}

.fuel-submit-button {
    background: #9DA030;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 30px;
}

.fuel-submit-button:hover {
    background: #8a8f2a;
}

.fuel-history-section {
    margin-top: 20px;
}

.fuel-history-title {
    font-size: 20px;
    color: white;
    margin: 20px 0 10px 0;
}

.fuel-records-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fuel-record-card {
    background: #1C1C1E;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fuel-record-row {
    display: flex;
    gap: 5px;
}

.fuel-record-label {
    font-size: 14px;
    color: gray;
}

.fuel-record-value {
    font-size: 14px;
    color: white;
}

/* Profile Page Styles */
.profile-page {
    min-height: 100vh;
    background: #0D1B2A;
    position: relative;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.back-arrow {
    margin: 10px 0 0 0;
    cursor: pointer;
}

.back-arrow img {
    width: 35px;
    height: 35px;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
}

.profile-title {
    font-size: 24px;
    color: white;
    text-align: center;
    margin: 20px 0 0 0;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    color: gray;
    font-size: 14px;
}

.info-value {
    color: white;
    font-size: 16px;
}

.logout-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.logout-button:hover {
    background: #c0392b;
}

.profile-view-card, .profile-edit-card, .password-change-card {
    background: var(--card-background);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #303135;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.field-label {
    color: gray;
    font-size: 12px;
}

.field-value {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
}

.field-input {
    background: var(--border-color);
    border: 1px solid #404145;
    border-radius: 5px;
    padding: 8px;
    color: white;
    font-size: 16px;
}

.field-input:focus {
    outline: none;
    border-color: #2196F3;
}

.edit-button {
    background: #3b9ab0;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.edit-button:hover {
    background: #2a7a8a;
}

.edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.save-button {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

.save-button:hover {
    background: #218838;
}

.cancel-button {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

.cancel-button:hover {
    background: #5a6268;
}

.password-title {
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.password-field {
    margin-bottom: 10px;
}

.password-input {
    background: var(--border-color);
    border: 1px solid #404145;
    border-radius: 5px;
    padding: 8px;
    color: white;
    font-size: 16px;
    width: 100%;
}

.password-input:focus {
    outline: none;
    border-color: #2196F3;
}

.password-input::placeholder {
    color: gray;
}

.change-password-button {
    background: #3b9ab0;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.change-password-button:hover {
    background: #2a7a8a;
}

/* Settings Page Styles */
.settings-page {
    min-height: 100vh;
    background: var(--background-color);
    position: relative;
}

.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.settings-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #303135;
}

.card-title {
    color: white;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #303135;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
}

.setting-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.about-info {
    color: #CCCCCC;
    line-height: 1.6;
}

.about-info p {
    margin: 10px 0;
}

.about-info strong {
    color: white;
}

