/* MOMENTUM Application Styles */
/* 🔒 LOCKED - UI STYLING LOCKED IMPLEMENTATION */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    /* Force scrollbar to always show to prevent layout shift */
    overflow-y: scroll;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 24px;
    box-sizing: border-box;
}

/* Header Styles */
.header {
    background: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.header img {
    max-width: 100px;
    height: auto;
    margin-bottom: 8px;
}

.header h1 {
    color: #1e3a8a;
    margin: 6px 0 4px 0;
    font-size: 1.8em;
    font-weight: 700;
}

.header p {
    color: #6b7280;
    margin: 0;
    font-size: 0.95em;
}

/* User Interface */
.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.user-info {
    font-size: 13px;
    color: #6b7280;
}

.logout-btn {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #b91c1c;
}

/* Navigation Tabs */
.nav-tabs {
    background: white;
    border-radius: 8px;
    margin-bottom: 18px;
    display: flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tab:first-child {
    border-radius: 8px 0 0 8px;
}

.nav-tab:last-child {
    border-radius: 0 8px 8px 0;
}

.nav-tab.active {
    background: #3b82f6;
    color: white;
}

.nav-tab:hover:not(.active) {
    background: #e5e7eb;
}

/* Page Content */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* Forms and Instructions */
.instructions {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid #3b82f6;
}

.form-container {
    background: white;
    padding: 24px 28px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

input[type="file"], input[type="text"], input[type="date"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[type="file"]:focus, input[type="text"]:focus, input[type="date"]:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
}

button {
    background-color: #3b82f6;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

button:hover {
    background-color: #2563eb;
}

/* Results */
.result {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 2px solid #10b981;
    display: none;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

/* Utilities */
.emoji {
    font-size: 1.2em;
    margin-right: 8px;
}

/* Login Page Styles */
.login-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.login-header {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #1e3a8a;
    font-size: 3em;
    margin: 20px 0 10px 0;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.google-login-btn {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    transition: background-color 0.3s;
}

.google-login-btn:hover {
    background-color: #3367d6;
}

.features {
    margin-top: 40px;
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.features h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.features li:last-child {
    border-bottom: none;
}

.welcome-message {
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: #065f46;
}

/* Access Denied Styles */
.denied-container {
    background: white;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.denied-container h1 {
    color: #dc2626;
    font-size: 2.5em;
    margin: 20px 0;
}

.denied-container p {
    color: #6b7280;
    line-height: 1.6;
    margin: 15px 0;
}

.back-btn {
    background-color: #6b7280;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #4b5563;
}

/* About Page Styles */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.project-overview {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.project-overview h2 {
    color: #1e3a8a;
    font-size: 2.2em;
    margin-bottom: 20px;
}

.project-overview p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #4b5563;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.5;
}

.team-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.team-section h2 {
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2em;
}

.team-intro {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.team-member {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.team-member:hover {
    background-color: #f8f9fa;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 auto 15px auto;
}

.team-member h3 {
    color: #1e3a8a;
    margin-bottom: 5px;
    font-size: 1.3em;
}

.member-title {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 10px;
}

.member-description {
    color: #6b7280;
    font-size: 0.95em;
    line-height: 1.4;
}

.technology-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.technology-section h2 {
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tech-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.tech-item strong {
    color: #1e3a8a;
}

.contact-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.contact-section h2 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-size: 2em;
}

.contact-section p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #3b82f6;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Processing Status Styles */
.processing-status {
    text-align: center;
    padding: 20px;
}

/* Spinner/Loading Indicator */
.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e5e7eb;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

.success-status {
    border: 2px solid #10b981;
    background: #f0fdf4;
    padding: 20px;
    border-radius: 8px;
}

.error-status {
    border: 2px solid #ef4444;
    background: #fef2f2;
    padding: 20px;
    border-radius: 8px;
}

.results-section {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
}

.results-section h3 {
    margin-top: 0;
    color: #1e3a8a;
}

.result-link {
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.result-link:hover {
    background: #2563eb;
}

/* Progress tracking styles */
.progress-text {
    font-size: 1.1em;
    margin: 10px 0;
    color: #1e3a8a;
}

.status-text {
    font-size: 1em;
    color: #6b7280;
    margin: 15px 0;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.steps-list {
    text-align: left;
    margin-top: 25px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.steps-list h4 {
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.steps-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: white;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.step-item.step-completed {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.step-item.step-processing {
    border-left-color: #3b82f6;
    background: #eff6ff;
    animation: pulse 2s infinite;
}

.step-item.step-pending {
    border-left-color: #e5e7eb;
    background: white;
    opacity: 0.7;
}

.step-time {
    font-size: 0.85em;
    color: #6b7280;
    margin-left: 10px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Folder Selector Styles */
.folder-selector {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    min-height: 200px;
    max-height: 350px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.folder-selector:focus-within {
    border-color: #3b82f6;
}

.drive-type-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    background: #f8f9fa;
}

.drive-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.drive-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.drive-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: white;
}

.breadcrumb {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    background: #e5e7eb;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.breadcrumb-item:hover {
    background: #d1d5db;
}

.breadcrumb-item.active {
    background: #3b82f6;
    color: white;
}

.breadcrumb-separator {
    color: #9ca3af;
    margin: 0 4px;
}

.folder-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.folder-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.folder-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.folder-item:hover {
    background: #f3f4f6;
}

.folder-item:active {
    background: #e5e7eb;
}

.folder-item.selectable {
    border: 1px solid #d1d5db;
}

.folder-item.selectable:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.folder-icon {
    font-size: 20px;
    margin-right: 12px;
    min-width: 24px;
}

.folder-name {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.folder-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.folder-item:hover .folder-actions {
    opacity: 1;
}

.select-folder-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: auto;
}

.select-folder-btn:hover {
    background: #059669;
}

.folder-item.shared-drive {
    background: #fef3c7;
    border-color: #fbbf24;
}

.folder-item.shared-drive .folder-icon {
    color: #d97706;
}

.selected-folder {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 8px 16px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.selected-folder .folder-path {
    flex: 1 1 0;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}

.selected-folder strong {
    color: #065f46;
}

.change-folder-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    width: auto;
    max-width: 60px;
    white-space: nowrap;
}

.change-folder-btn:hover {
    background: #4b5563;
}

.empty-folder {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-style: italic;
}

.back-to-parent {
    color: #3b82f6;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.back-to-parent .folder-icon {
    color: #3b82f6;
}

/* Compact form when folder is selected */
.form-group.folder-selected {
    margin-bottom: 16px;
}

/* File Drop Zone Styles */
.file-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    min-height: 200px;
    transition: all 0.3s ease;
    position: relative;
}

.file-drop-zone.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
    border-style: solid;
}

.drop-zone-content {
    text-align: center;
    padding: 40px 20px;
}

.drop-zone-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.drop-zone-text {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.drop-zone-subtext {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.browse-files-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: auto;
}

.browse-files-btn:hover {
    background: #2563eb;
}

.file-list {
    border-top: 1px solid #e5e7eb;
    padding: 16px 20px;
    background: white;
    border-radius: 0 0 8px 8px;
}

.file-list h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #374151;
    font-weight: 600;
}

.file-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

.file-list-item:last-child {
    margin-bottom: 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: #6b7280;
}

.remove-file-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: auto;
    flex-shrink: 0;
}

.remove-file-btn:hover {
    background: #dc2626;
}
/* User Guides Section Styles */
.user-guides-section {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid #bae6fd;
}

.user-guides-section h2 {
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.user-guides-section > p {
    color: #475569;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.guide-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.guide-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.guide-card h3 {
    color: #1e3a8a;
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.guide-card p {
    color: #64748b;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 16px;
    min-height: 60px;
}

.download-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-download,
.btn-view,
.btn-print {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-download {
    background: #3b82f6;
    color: white;
}

.btn-download:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.btn-view {
    background: #10b981;
    color: white;
}

.btn-view:hover {
    background: #059669;
    transform: scale(1.05);
}

.btn-print {
    background: #8b5cf6;
    color: white;
}

.btn-print:hover {
    background: #7c3aed;
    transform: scale(1.05);
}

.guides-note {
    background: white;
    border-left: 4px solid #3b82f6;
    padding: 16px 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.guides-note p {
    margin: 0;
    color: #475569;
    font-size: 0.95em;
}

.guides-note strong {
    color: #1e3a8a;
}

/* Responsive adjustments for guides */
@media (max-width: 768px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .btn-download,
    .btn-view,
    .btn-print {
        width: 100%;
    }
}
