/**
 * AEL File Transfer - Stylesheet
 * Clean, professional design with teal accents
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

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

.logo img {
    max-width: 350px;
    height: auto;
}

.login-box h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #5bc0de;
    box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.1);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: normal;
}

.btn-primary {
    background-color: #5bc0de;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #46b8da;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #d9534f;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #c9302c;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
    font-size: 14px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Dashboard Layout */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-small {
    margin-right: 20px;
}

.logo-small img {
    height: 40px;
    width: auto;
}

.dashboard-header h1 {
    flex: 1;
    font-size: 24px;
    color: #333;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    padding: 30px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Statistics Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #5bc0de;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Upload Section */
.upload-section {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.upload-dropzone {
    border: 2px dashed #5bc0de;
    border-radius: 5px;
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f8fcfd;
}

.upload-dropzone:hover {
    background-color: #e8f6f9;
    border-color: #46b8da;
}

.upload-dropzone.dragover {
    background-color: #d1ecf1;
    border-color: #46b8da;
    transform: scale(1.02);
}

.upload-icon {
    color: #5bc0de;
    margin-bottom: 15px;
}

.upload-icon svg {
    width: 64px;
    height: 64px;
}

.upload-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.upload-subtext {
    font-size: 14px;
    color: #666;
}

/* Upload Progress */
.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #5bc0de;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Files Section */
.files-section {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.files-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.files-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.files-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.files-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.files-table tbody tr:hover {
    background-color: #f8f9fa;
}

.files-table td {
    padding: 12px 15px;
}

.files-table .filename {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.files-table .actions {
    white-space: nowrap;
}

.files-table .actions .btn {
    margin-right: 5px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    margin-bottom: 15px;
    color: #666;
}

.warning-text {
    color: #d9534f;
    font-size: 13px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.toast.success {
    background-color: #5cb85c;
}

.toast.error {
    background-color: #d9534f;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .dashboard-header h1 {
        font-size: 20px;
    }

    .logo-small {
        margin-right: 0;
    }

    .dashboard-main {
        padding: 15px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .upload-section,
    .files-section {
        padding: 20px;
    }

    .upload-dropzone {
        padding: 40px 20px;
    }

    .files-table {
        font-size: 13px;
    }

    .files-table th,
    .files-table td {
        padding: 10px;
    }

    .files-table .actions .btn {
        display: block;
        margin-bottom: 5px;
        width: 100%;
    }

    .toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .logo img {
        max-width: 250px;
    }

    .modal-content {
        padding: 20px;
    }
}
