/* Rotary Club Professional Theme */
:root {
    --rotary-primary: #1e40af;
    --rotary-secondary: #3b82f6;
    --rotary-accent: #f59e0b;
    --rotary-gold: #d4af37;
    --rotary-light: #ffffff;
    --rotary-gray: #f8fafc;
    --rotary-dark: #1f2937;
    --rotary-text: #374151;
    --rotary-border: #e5e7eb;
}

/* Override Bootstrap with Rotary Colors */
.bg-primary {
    background-color: var(--rotary-primary) !important;
}

.text-primary {
    color: var(--rotary-primary) !important;
}

.btn-primary {
    background-color: var(--rotary-primary) !important;
    border-color: var(--rotary-primary) !important;
}

.btn-primary:hover {
    background-color: var(--rotary-secondary) !important;
    border-color: var(--rotary-secondary) !important;
}

.btn-outline-primary {
    color: var(--rotary-primary) !important;
    border-color: var(--rotary-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--rotary-primary) !important;
    border-color: var(--rotary-primary) !important;
}

/* Professional styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--rotary-light);
    color: var(--rotary-text);
}

/* Professional card styling */
.card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    border-bottom: none !important;
}

/* Enhanced navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
}

/* Modern Professional Header */
.rotary-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
}

.rotary-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,70 Q25,50 50,70 T100,70 L100,100 L0,100 Z" fill="rgba(255,255,255,0.15)"/></svg>');
    background-size: 200px 100px;
    background-repeat: repeat-x;
    opacity: 0.6;
}

.rotary-header .container {
    position: relative;
    z-index: 1;
}

.rotary-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.rotary-header .lead {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
}

/* Upload Card Styling */
.upload-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upload-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* Drag & Drop Zone */
.drop-zone {
    border: 3px dashed var(--castle-primary);
    border-radius: 12px;
    padding: 3rem 2rem;
    background: linear-gradient(45deg, #f8faff 0%, #f0f4ff 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: var(--castle-secondary);
    background: linear-gradient(45deg, #f0f4ff 0%, #e6f0ff 100%);
    transform: scale(1.02);
}

.drop-zone.drag-over {
    border-color: var(--castle-gold);
    background: linear-gradient(45deg, #fffaf0 0%, #fef5e7 100%);
    transform: scale(1.05);
}

.drop-icon {
    font-size: 4rem;
    color: var(--castle-primary);
    transition: all 0.3s ease;
}

.drop-zone:hover .drop-icon {
    color: var(--castle-secondary);
    transform: scale(1.1);
}

/* File Info Card */
.file-info {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar Styling */
.progress-container {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.progress {
    border-radius: 10px;
    background-color: #e2e8f0;
}

.progress-bar {
    background: linear-gradient(90deg, var(--castle-primary) 0%, var(--castle-secondary) 50%, var(--castle-accent) 100%);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* File Cards */
.file-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.file-card:hover {
    box-shadow: 0 10px 25px rgba(44, 82, 130, 0.15);
    border-color: var(--castle-primary);
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Navbar Styling */
.navbar-logo {
    /* Keep original colors for Rotary logo */
    filter: none;
    background: white;
    border-radius: 4px;
    padding: 2px;
    width: auto; /* Preserve aspect ratio */
    max-height: 30px;
}

/* Header Logo Styling */
.header-logo {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: auto; /* Preserve aspect ratio */
    max-height: 60px;
}

/* Footer */
footer {
    border-top: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .castle-header {
        padding: 2rem 0;
    }
    
    .castle-header h1 {
        font-size: 2rem;
    }
    
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    .drop-icon {
        font-size: 3rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Custom Alert Styling */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.success-message {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    color: white !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3) !important;
    animation: successSlideIn 0.5s ease-out;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.success-message:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(72, 187, 120, 0.4) !important;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1.02);
    }
}

.alert-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

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

/* Card Header Gradient */
.card-header.bg-primary {
    background: linear-gradient(135deg, var(--castle-primary) 0%, var(--castle-secondary) 100%) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--castle-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--castle-secondary);
}
