@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --primary-color: #2d4059;
    --secondary-color: #ea5455;
    --accent-color: #f07b3f;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --bg-main: #f5f6fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-gray: #6c757d;
    --border-color: #dfe4ea;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Archivo', sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

#root {
    min-height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #16213e 100%);
}

.login-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h1 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 700;
}

.login-box h2 {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Archivo', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 64, 89, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Archivo', sans-serif;
}

.btn-primary:hover {
    background: #1f2d40;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-complete {
    padding: 10px 20px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-complete:hover {
    background: #27ae60;
    transform: translateY(-1px);
}

.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.error-message {
    background: #fee;
    color: var(--danger-color);
    border: 1px solid #fcc;
}

.success-message {
    background: #efe;
    color: var(--success-color);
    border: 1px solid #cfc;
}

.error-message.show,
.success-message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    background: var(--bg-white);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand h1 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
}

.navbar-menu {
    display: flex;
    gap: 12px;
}

.nav-btn {
    padding: 10px 20px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Archivo', sans-serif;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

.logout-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.logout-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.home-container {
    min-height: 100vh;
    background: var(--bg-main);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.left-panel {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 88px;
}

.left-panel h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-item {
    padding: 16px;
    background: var(--bg-main);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.update-item:hover {
    background: #e8eaf0;
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.update-item.active {
    background: var(--primary-color);
    color: white;
}

.update-item.urgent {
    border-left-color: var(--danger-color);
}

.update-customer {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

.update-module {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.update-item.active .update-module {
    color: rgba(255, 255, 255, 0.8);
}

.update-status {
    display: inline-block;
    padding: 4px 10px;
    background: var(--warning-color);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
}

.priority-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.update-item:not(.urgent) .priority-badge {
    display: none;
}

.right-panel {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    min-height: calc(100vh - 120px);
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
}

.welcome-message h2 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 28px;
}

.welcome-message p {
    color: var(--text-gray);
    font-size: 16px;
}

.update-details h2 {
    color: var(--primary-color);
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
}

.detail-section-column {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
}

.detail-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-main);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.attachment-item:hover {
    background: #e8eaf0;
}

.attachment-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.attachment-name {
    flex: 1;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.attachment-download {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.attachment-download:hover {
    background: #1f2d40;
}

.page-container {
    min-height: 100vh;
    background: var(--bg-main);
}

.form-container {
    max-width: 900px;
    margin: 32px auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-container h2 {
    color: var(--primary-color);
    margin-bottom: 32px;
    font-size: 24px;
    font-weight: 700;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
    font-size: 15px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .left-panel {
        height: auto;
        position: relative;
        top: 0;
    }
    
    .navbar-menu {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .navbar {
        flex-direction: column;
        gap: 16px;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .form-container {
        padding: 24px;
    }
}

@media (max-width: 1024px) {
    .detail-section-column {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .detail-section-column {
        grid-template-columns: 1fr;
    }
}
