/* Dock R1 - Main Styles */
/* Brand Colors: Teal to Green Gradient (#00c6ff to #0072ff) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    min-height: 100vh;
    color: #e2e8f0;
}

/* App Container */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Component */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 12px;
}

.logo:hover {
    background: rgba(255, 255, 255, 0.05);
}

.logo-image {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #e2e8f0;
}

.settings-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #a0aec0;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Page Container */
.page {
    display: none;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    min-height: 600px;
}

.page.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Page Component */
.login-container {
    padding: 60px 40px;
    text-align: center;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 16px;
    color: #a0aec0;
    margin-bottom: 40px;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #4a5568;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(45, 55, 72, 0.8);
    color: #e2e8f0;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00c6ff;
    background: rgba(45, 55, 72, 0.9);
}

.form-input::placeholder {
    color: #a0aec0;
}

.security-notice {
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.security-notice h4 {
    color: #00c6ff;
    margin-bottom: 10px;
}

.security-notice p {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.5;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #0072ff;
    color: #0072ff;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    width: 100%;
    margin-bottom: 20px;
}

/* Dashboard Page Component */
.dashboard-container {
    padding: 40px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.reports-section {
    margin-top: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.reports-list {
    display: grid;
    gap: 15px;
}

.report-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #0072ff;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.report-type {
    font-weight: 600;
    color: #333;
}

.confidence-score {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.report-date {
    color: #666;
    font-size: 14px;
}

/* Report View Page Component */
.report-container {
    padding: 40px;
}

.report-header-view {
    text-align: center;
    margin-bottom: 40px;
}

.confidence-display {
    display: inline-block;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.report-content {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.report-section {
    margin-bottom: 30px;
}

.section-header {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #0072ff;
    padding-bottom: 5px;
}

.section-content {
    color: #555;
    line-height: 1.6;
}

.report-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Settings Page Component */
.settings-container {
    padding: 40px;
}

.settings-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.profile-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.profile-info {
    display: grid;
    gap: 15px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.profile-label {
    font-weight: 500;
    color: #333;
}

.profile-value {
    color: #666;
}

.settings-section {
    margin-bottom: 30px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.setting-label {
    font-weight: 500;
    color: #333;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #0072ff;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(25px);
}

.select-dropdown {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
}

.support-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

.support-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.support-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.support-label {
    color: #333;
}

.support-value {
    color: #0072ff;
    font-weight: 500;
}

/* Toast Notification Component */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 10px;
    }

    .header {
        padding: 15px 20px;
        margin: 10px;
    }

    .login-container,
    .dashboard-container,
    .report-container,
    .settings-container {
        padding: 30px 20px;
    }

    .action-buttons {
        gap: 15px;
    }

    .report-actions {
        flex-direction: column;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
    }
}
