﻿/* AZPRO Secure File Transfer Portal - Styles */
/* Brand Colors: Dark Gray/Black #1a1a1a, Orange #f26522, White #ffffff */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

/* Login Page Styles */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.brand-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.brand-tagline {
    font-size: 1rem;
    color: #f26522;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 1px;
}

.login-card h2 {
    text-align: center;
    color: #1a1a1a;
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #f26522;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.15);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #f26522;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: #d9551a;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.login-help {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Alert Styles */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-error {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    color: #cc0000;
}

.alert-success {
    background: #f0fff4;
    border: 1px solid #99e6b3;
    color: #006622;
}

.alert-warning {
    background: #fff8e6;
    border: 1px solid #ffd966;
    color: #996600;
}

/* Main Portal Styles */
.portal-container {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.portal-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portal-header .brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portal-header .brand-title {
    font-size: 1.8rem;
    margin: 0;
}

.portal-header .brand-tagline {
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #1a1a1a;
    font-weight: 500;
}

.btn-logout {
    padding: 10px 20px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #333333;
}

/* File Upload Section */
.upload-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.upload-section h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.upload-zone {
    border: 3px dashed #e0e0e0;
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #f26522;
    background-color: rgba(242, 101, 34, 0.05);
}

.upload-zone p {
    color: #666;
    margin-bottom: 15px;
}

.upload-zone .upload-icon {
    font-size: 3rem;
    color: #f26522;
    margin-bottom: 15px;
}

.btn-upload {
    padding: 12px 30px;
    background: #f26522;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-upload:hover {
    background: #d9551a;
}

/* File List Section */
.file-list-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.file-list-section h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table th,
.file-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.file-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #1a1a1a;
}

.file-table tr:hover {
    background: #fafafa;
}

.file-table .file-name {
    color: #f26522;
    font-weight: 500;
}

.file-table .file-size {
    color: #666;
}

.file-table .file-date {
    color: #666;
}

/* Progress Bar */
.progress-container {
    margin-top: 20px;
    display: none;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #f26522;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    margin-top: 10px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Upload Container Page Styles (index.php - compact layout) */
.upload-container {
    flex: 1;
    padding: 15px 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.header-bar {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-bar h1 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin: 0;
}

.upload-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.upload-card h2 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.drop-zone {
    border: 2px dashed #999;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    background: #fafafa;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #f26522;
    background-color: rgba(242, 101, 34, 0.05);
}

.drop-zone-content p {
    color: #1a1a1a;
    font-weight: 500;
    margin: 8px 0;
    font-size: 0.95rem;
}

.drop-zone-content .file-hint {
    color: #f26522;
    font-weight: 600;
    font-size: 0.85rem;
}

.upload-icon {
    width: 36px;
    height: 36px;
    color: #f26522;
    margin-bottom: 5px;
}

.file-input {
    display: none;
}

.file-list {
    margin: 10px 0;
}

.btn-upload {
    margin-top: 12px;
}

.btn-upload:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.recent-uploads {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.recent-uploads h3 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 1rem;
}

.recent-uploads .no-files {
    color: #666;
    font-style: italic;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .portal-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
    }

    .upload-zone {
        padding: 30px;
    }

    .file-table {
        font-size: 0.9rem;
    }

    .file-table th,
    .file-table td {
        padding: 10px 8px;
    }
}
