/* Dropzone styling */
.dropzone {
    border: 3px dashed #ccd7e0;
    border-radius: 10px;
    background: #f8fafc;
    min-height: 200px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dropzone:hover {
    border-color: var(--primary-color);
    background-color: rgba(10, 133, 169, 0.05);
}

.dropzone .dz-message {
    margin: 0;
    text-align: center;
    pointer-events: none;
}

.dropzone .dz-message .icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.dropzone .dz-message h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.dropzone .dz-preview {
    margin: 1rem;
}

/* Ensure Dropzone remains clickable */
.dropzone.dz-clickable {
    cursor: pointer;
}

.dropzone.dz-clickable .dz-message {
    pointer-events: none;
}

.dropzone.dz-clickable .dz-message * {
    pointer-events: none;
}
:root {
    --primary-color: #0a85a9;     /* Blue - trust/security */
    --secondary-color: #7d408b;    /* Purple - encryption */
    --dark-color: #004358;         /* Dark blue-green - professionalism */
    --light-color: #f0f7fa;        /* Light blue-gray - clean interface */
    --success-color: #2a8d5e;      /* Green - success/secure */
    --danger-color: #b71540;       /* Deep red - danger/compromised */
    --warning-color: #e58e26;      /* Orange - warning/caution */
}

/* Base Styles */
html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: var(--light-color);
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.navbar {
    background-color: var(--dark-color) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    border-bottom: 0;
    padding: 1.2rem 1.5rem;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%) !important;
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: #0778a0 !important;
    border-color: #0778a0 !important;
}

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

/* Tab Navigation */
.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 3px solid var(--primary-color);
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
    margin-top: 5px;
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Password Strength Indicators */
.progress-bar.strength-0 { 
    background: linear-gradient(to right, #b71540, #e55039);
    width: 20%; 
}

.progress-bar.strength-1 { 
    background: linear-gradient(to right, #e55039, #fa983a);
    width: 40%; 
}

.progress-bar.strength-2 { 
    background: linear-gradient(to right, #fa983a, #fbc531);
    width: 60%; 
}

.progress-bar.strength-3 { 
    background: linear-gradient(to right, #fbc531, #78e08f);
    width: 80%; 
}

.progress-bar.strength-4 { 
    background: linear-gradient(to right, #78e08f, #38ada9);
    width: 100%; 
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(10, 133, 169, 0.25);
}

.input-group .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
}

/* Alert Styling */
.alert-success {
    background-color: rgba(42, 141, 94, 0.15);
    border-color: rgba(42, 141, 94, 0.3);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(183, 21, 64, 0.15);
    border-color: rgba(183, 21, 64, 0.3);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(229, 142, 38, 0.15);
    border-color: rgba(229, 142, 38, 0.3);
    color: var(--warning-color);
}

/* Footer Styling */
.footer {
    background-color: var(--dark-color) !important;
    color: white;
    padding: 1.5rem 0 !important;
    flex-shrink: 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Animation for file operation completion */
@keyframes highlight {
    0% { background-color: rgba(10, 133, 169, 0.2); }
    100% { background-color: transparent; }
}

.highlight-animation {
    animation: highlight 1.5s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .card-body {
        padding: 1rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .dropzone {
        min-height: 150px;
    }
    
    .dropzone .dz-message .icon {
        font-size: 2.5rem;
    }
    
    .dropzone .dz-message h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card-header h2 {
        font-size: 1.25rem;
    }
    
    .container.my-5 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
}