/* DD Profit Plus CRM - Theme Styles */

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
    transition: all 0.3s ease;
}
.glass-card:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.glass-card-static {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}

/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Styles */
.form-floating {
    position: relative;
}
.form-floating input, .form-floating select {
    width: 100%;
    padding: 1rem 0.75rem 0.5rem;
    border: 2px solid #e0e7ff;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    font-size: 0.875rem;
}
.form-floating input:focus, .form-floating select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-floating label {
    position: absolute;
    top: 0;
    left: 0.75rem;
    padding: 0.75rem 0;
    pointer-events: none;
    transition: all 0.2s ease;
    color: #9ca3af;
    font-size: 0.875rem;
}
.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.7rem;
    color: #6366f1;
    background: white;
    padding: 0 0.25rem;
}

/* Gradient Buttons */
.btn-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-gradient-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-gradient-outline:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    transform: translateY(-2px);
}

/* Table Styles */
.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.glass-table thead th {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.glass-table thead th:first-child { border-radius: 0.75rem 0 0 0; }
.glass-table thead th:last-child { border-radius: 0 0.75rem 0 0; }
.glass-table tbody tr {
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}
.glass-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.9);
}
.glass-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    font-size: 0.875rem;
}

/* Badges */
.badge-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; }
.badge-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; }
.badge-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; }
.badge-info { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; }

/* Animations */
@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a5b4fc; }

/* Print Styles */
@media print {
    .no-print { display: none !important; }
    .glass-card, .glass-card-static { background: white; box-shadow: none; border: 1px solid #ddd; }
    body { background: white; }
}

/* Login Page */
.login-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}