/* Soft Rose Theme */
:root {
    --primary: #06b6d4;
    --primary-light: #22d3ee;
    --primary-dark: #222324;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f0fdfd;
    --dark: #1e293b;
    --gradient-1: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-3: linear-gradient(135deg, #10b981 0%, #84cc16 100%);
    --shadow-soft: 0 8px 32px rgba(6, 182, 212, 0.1);
    --shadow-medium: 0 15px 35px rgba(6, 182, 212, 0.15);
    --shadow-large: 0 25px 50px rgba(6, 182, 212, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-1);
    opacity: 0.1;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    background: var(--secondary);
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    background: var(--success);
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Company Branding */
.company-brand {
    text-align: center;
    padding: 40px 0 20px;
    animation: fadeInDown 1s ease;
}

.brand-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s infinite;
}

.company-name {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.company-tagline {
    font-size: 1.3rem;
    color: #6c757d;
    font-weight: 300;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: var(--shadow-soft);
    }

    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-medium);
    }

    100% {
        transform: scale(1);
        box-shadow: var(--shadow-soft);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Upload Section */
.upload-section {
    padding: 50px;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.upload-btn-container {
    position: relative;
    display: inline-block;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
        var(--gradient-1) border-box;
    animation: pulse 3s infinite;
}

.upload-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-large);
    animation: none;
}

.upload-btn i {
    font-size: 50px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.upload-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

.upload-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 2rem !important;
}

/* Login Panel */
.login-panel {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    animation: slideInRight 1s ease;
    transition: transform 0.3s ease;
}

.login-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.panel-header {
    text-align: center;
    margin-bottom: 2rem;
}

.security-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: bounce 3s infinite;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    background: white;
    transform: translateY(-2px);
}

.form-label {
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Upload Container */
.upload-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    margin: 30px auto;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.upload-container:hover {
    box-shadow: var(--shadow-medium);
}

/* Drop Zone */
.drop-zone {
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    padding: 60px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
    cursor: pointer;
    position: relative;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    transform: scale(1.02);
}

.drop-zone.dragover {
    animation: pulse 1s infinite;
}

.drop-zone i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.drop-zone:hover i {
    color: var(--primary-light);
    transform: scale(1.1);
}

/* File Items */
.file-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    animation: slideInLeft 0.5s ease;
}

.file-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary);
}

.file-item.success {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, white, #f0f9ff);
}

.file-item.error {
    border-left: 4px solid var(--danger);
    background: linear-gradient(135deg, white, #fff5f5);
}

.file-info {
    display: flex;
    justify-content: between;
    align-items: center;
}

.file-name {
    font-weight: 600;
    color: var(--dark);
}

.file-size {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Progress Bars */
.progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    background: var(--gradient-1);
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Dashboard Styles */
.dashboard-header {
    background: var(--gradient-1);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
    animation: fadeInDown 1s ease;
}

.stats-cards {
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    animation: fadeInUp 1s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.stat-card:nth-child(1) {
    border-bottom-color: var(--primary);
}

.stat-card:nth-child(2) {
    border-bottom-color: var(--success);
}

.stat-card:nth-child(3) {
    border-bottom-color: var(--warning);
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-card:nth-child(1) i {
    color: var(--primary);
}

.stat-card:nth-child(2) i {
    color: var(--success);
}

.stat-card:nth-child(3) i {
    color: var(--warning);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6c757d;
    font-weight: 500;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    animation: fadeInUp 1s ease;
}

.table {
    margin-bottom: 0;
}

.table th {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 20px;
    font-weight: 600;
}

.table td {
    padding: 20px;
    border-color: #f1f3f4;
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

/* Badges */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-primary {
    background: var(--gradient-1);
    color: white;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-large);
}

.modal-header {
    background: var(--gradient-1);
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
    padding: 25px;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border: none;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

/* Feature Cards */
.feature-cards {
    margin: 50px 0;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Utility Classes */
.min-vh-80 {
    min-height: 80vh;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--success);
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
}

.check-icon::before,
.check-icon::after {
    content: '';
    height: 4px;
    background: var(--success);
    position: absolute;
    transform: scaleX(0);
    animation: check 0.3s ease-in-out 0.3s forwards;
}

@keyframes check {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-name {
        font-size: 2rem;
    }

    .upload-btn {
        width: 120px;
        height: 120px;
    }

    .upload-btn i {
        font-size: 40px;
    }

    .login-panel {
        padding: 30px 20px;
        margin: 20px 0;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .feature-card {
        margin-bottom: 30px;
    }

    .stat-card {
        margin-bottom: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: white;
}