/*
 * CLAVION FileShare - Main Stylesheet
 * Color Palette inspired by Revo Insurance
 * Primary: #EE7219 (Orange)
 * Secondary: #C8D500 (Yellow-green)
 * Dark: #232428
 * Grays: #4D4D4D, #DADADA
 */

/* ==================== CSS Variables ==================== */
:root {
    --primary-color: #EE7219;
    --primary-hover: #EE7219;
    --secondary-color: #6c757d;
    --dark-color: #232428;
    --text-color: #4D4D4D;
    --light-gray: #DADADA;
    --white: #FFFFFF;
    --black: #000000;
    --gradient-bg: linear-gradient(135deg, #EE7219 0%, #d6640e 100%);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --card-radius: 15px;
}

/* ==================== Global Styles ==================== */
body {
    background: linear-gradient(135deg, #000000 0%, #111111 50%, #1f1f1f 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
}

/* ==================== Cards ==================== */
.card {
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: none;
}

/* ==================== Buttons ==================== */
.btn-check:checked + .btn,
:not(.btn-check) + .btn:active,
.btn:first-child:active,
.btn.active,
.btn.show {
    color: var(--white);
    background-color: var(--primary-color);
    background-image: none;
    border-color: var(--primary-color);
    box-shadow: var(--primary-color);
}

.btn-primary {
    background: var(--gradient-bg);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        opacity: 0.9;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(238, 114, 25, 0.4);
        background: var(--gradient-bg);
        border: none;
    }

.btn-secondary {
    background-color: var(--secondary-color);
    border: none;
    color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

    .btn-secondary:hover {
        background-color: var(--secondary-color);
        color: var(--white);
        opacity: 0.9;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(200, 213, 0, 0.4);
    }

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px);
        border-color: var(--primary-color);
    }

.btn-danger {
    background-color: #dc3545;
    color: var(--white);
    border: none;
    border-radius: 8px;
}

    .btn-danger:hover {
        background-color: #c82333;
        transform: translateY(-2px);
    }

.btn-success {
    background-color: #28a745;
    border: none;
    border-radius: 8px;
}

    .btn-success:hover {
        background-color: #218838;
        transform: translateY(-2px);
    }

.btn-info {
    background-color: #17a2b8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
}

    .btn-info:hover {
        background-color: #138496;
        color: #ffffff;
        transform: translateY(-2px);
    }

.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.25rem !important;
    margin: 1px !important;
}

/* ==================== Spinner Overlay ==================== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 36, 40, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    .spinner-overlay.show {
        display: flex;
    }

.spinner-content {
    text-align: center;
    color: white;
}

.spinner-border-custom {
    width: 4rem;
    height: 4rem;
    border-width: 0.4em;
    border-color: var(--primary-color);
    border-right-color: transparent;
}

/* ==================== Logo Container ==================== */
.logo-container {
    /*background: white;*/
    padding: 15px 30px;
    border-radius: var(--card-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
}

.logo-text {
    margin: 0;
    color: var(--white);
    font-weight: bold;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

/* ==================== Language Dropdown ==================== */
.language-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
}

.language-btn {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

    .language-btn:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

/* ==================== Navigation Tabs ==================== */
.nav-tabs {
    border-bottom: 2px solid var(--light-gray);
}

    .nav-tabs .nav-link {
        color: var(--text-color);
        border: none;
        border-radius: 8px 8px 0 0;
        padding: 12px 24px;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }

        .nav-tabs .nav-link:hover {
            background-color: rgba(238, 114, 25, 0.1);
            color: var(--primary-color);
        }

        .nav-tabs .nav-link.active {
            background-color: var(--primary-color);
            color: var(--white);
            border: none;
            box-shadow: 0 4px 10px rgba(238, 114, 25, 0.3);
        }

            .nav-tabs .nav-link.active::after {
                content: '';
                position: absolute;
                bottom: -2px;
                left: 0;
                right: 0;
                height: 2px;
                background-color: var(--primary-color);
            }

/* ==================== Forms ==================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(238, 114, 25, 0.25);
}

.form-label {
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 8px;
}

/* ==================== File Items List ==================== */
.file-item {
    border-bottom: 1px solid var(--light-gray);
    padding: 15px 0;
    transition: all 0.3s ease;
}

    .file-item:last-child {
        border-bottom: none;
    }

    .file-item:hover {
        background-color: rgba(238, 114, 25, 0.05);
        padding-left: 10px;
    }

/* ==================== Drop Zone (Upload Page) ==================== */
.drop-zone {
    border: 3px dashed var(--primary-color);
    border-radius: var(--card-radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(238, 114, 25, 0.05) 0%, rgba(200, 213, 0, 0.05) 100%);
}

    .drop-zone:hover,
    .drop-zone.dragover {
        border-color: var(--secondary-color);
        background: linear-gradient(135deg, rgba(238, 114, 25, 0.1) 0%, rgba(200, 213, 0, 0.1) 100%);
        transform: scale(1.02);
    }

.drop-zone-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.remove-file {
    cursor: pointer;
    transition: all 0.3s ease;
}

    .remove-file:hover {
        transform: scale(1.2);
    }

/* ==================== File List & Selection ==================== */
.file-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    transition: transform 0.2s ease;
}

    .file-checkbox:hover {
        transform: scale(1.1);
    }

.file-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin-bottom: 8px;
}

    .file-list-item:hover {
        background-color: rgba(238, 114, 25, 0.05);
        border-color: rgba(238, 114, 25, 0.2);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .file-list-item.selected {
        background-color: rgba(238, 114, 25, 0.12);
        border-color: var(--primary-color);
        box-shadow: 0 2px 12px rgba(238, 114, 25, 0.2);
    }

.batch-actions {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, rgba(238, 114, 25, 0.05) 0%, rgba(200, 213, 0, 0.05) 100%);
    z-index: 10;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(238, 114, 25, 0.2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

    .batch-actions .btn {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

        .batch-actions .btn:hover {
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

/* ==================== Alerts ==================== */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #0c5460;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

/* ==================== File Request Cards ==================== */
.request-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

    .request-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

.request-header {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==================== Modals ==================== */
.modal-content {
    border-radius: var(--card-radius);
    border: none;
}

.modal-header {
    background: var(--gradient-bg);
    color: var(--white);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    border: none;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: brightness(0) invert(1);
}

/* ==================== Text Utilities ==================== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.8rem;
    }

    .logo-container {
        padding: 10px 20px;
    }

    .language-dropdown {
        position: static;
        margin-top: 15px;
    }
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease;
}

/* ==================== Loading States ==================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ==================== Custom Scrollbar ==================== */
/*::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}*/

/*::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}*/

/*::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}
*/
/* ==================== Utility Classes ==================== */
.cursor-pointer {
    cursor: pointer;
}

/* ==================== Expiration Section ==================== */
.expiration-section {
    background: linear-gradient(135deg, rgba(238, 114, 25, 0.05) 0%, rgba(200, 213, 0, 0.05) 100%);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(238, 114, 25, 0.2);
}

    .expiration-section .form-select-lg {
        font-size: 1.2rem;
        padding: 12px 16px;
        border: 2px solid var(--primary-color);
        font-weight: 500;
    }

        .expiration-section .form-select-lg:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(238, 114, 25, 0.25);
        }
