/* Responsive Styles for NiceSeva Portal */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .main-nav ul {
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Header */
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-main .container {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Hero Slider */
    .hero-slider {
        height: 300px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-description {
        font-size: 16px;
    }

    /* Sections */
    section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    /* Grids */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Welcome Section */
    .welcome-content {
        flex-direction: column;
    }

    /* Login/Register */
    .login-container,
    .register-container {
        flex-direction: column;
    }

    .banner-slider {
        display: none;
    }

    .login-form-container,
    .register-form-container {
        flex: none;
        width: 100%;
    }

    /* Admin Panel */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .content-wrapper {
        padding: 15px;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .row-2-cols {
        grid-template-columns: 1fr;
    }

    .topbar-left {
        gap: 10px;
    }

    .search-box {
        display: none;
    }

    .admin-topbar {
        padding: 0 15px;
    }

    /* Tables */
    .table-responsive {
        overflow-x: auto;
    }

    .table {
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 8px;
        white-space: nowrap;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
    }

    .filter-form .form-group {
        width: 100%;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .header-logo img {
        max-height: 40px;
    }

    .hero-slider {
        height: 250px;
    }

    .slide-title {
        font-size: 24px;
    }

    .slide-description {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px 25px;
        font-size: 16px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        margin-bottom: 10px;
    }

    .topbar-right {
        gap: 10px;
    }

    .user-profile-btn span {
        display: none;
    }

    .status-label {
        display: none;
    }

    .content-wrapper {
        padding: 10px;
    }

    .card-body {
        padding: 15px;
    }

    .action-buttons {
        display: flex;
        gap: 5px;
    }

    .btn-sm {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Utility Classes */
.hide-mobile {
    @media (max-width: 768px) {
        display: none !important;
    }
}

.show-mobile {
    display: none !important;

    @media (max-width: 768px) {
        display: block !important;
    }
}

/* Print Styles */
@media print {
    .admin-sidebar,
    .admin-topbar,
    .btn,
    .action-buttons,
    .no-print {
        display: none !important;
    }

    .admin-content {
        margin-left: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    body {
        background: #fff !important;
    }

    .table {
        page-break-inside: auto;
    }

    .table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}
/* Modern 3D Theme - Pink, White, Blue Gradient */
/* Inspired by professional dashboard designs */

:root {
    /* Primary Colors - Pink to Purple Gradient */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);

    /* Secondary Colors - Pink to Red Gradient */
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --secondary-gradient-hover: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);

    /* Info Colors - Blue to Cyan Gradient */
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --info-gradient-hover: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);

    /* Success Colors - Green Gradient */
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);

    /* Solid Colors */
    --primary: #667eea;
    --secondary: #f093fb;
    --info: #4facfe;
    --success: #43e97b;
    --warning: #feca57;
    --danger: #ff6b6b;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --white: #ffffff;

    /* Text Colors */
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #adb5bd;

    /* Shadow Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;
}

/* Reset & Base Styles */
* {
    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(--text-dark);
    line-height: 1.6;
}

/* Modern Card Design */
.modern-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Gradient Buttons */
.btn-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-gradient-secondary {
    background: var(--secondary-gradient);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-gradient-secondary:hover {
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

.btn-gradient-info {
    background: var(--info-gradient);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

/* Animated Background */
.animated-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glass Morphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 3D Card Effect */
.card-3d {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.05),
        0 8px 16px rgba(0,0,0,0.1),
        0 16px 32px rgba(0,0,0,0.05);
    transition: all 0.3s;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: rotateX(2deg) rotateY(5deg) translateY(-10px);
    box-shadow:
        0 5px 10px rgba(0,0,0,0.1),
        0 15px 30px rgba(0,0,0,0.15),
        0 30px 60px rgba(0,0,0,0.1);
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Info Card with Gradient */
.info-card-modern {
    background: var(--secondary-gradient);
    color: white;
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: 0 15px 35px rgba(240, 147, 251, 0.3);
    position: relative;
    overflow: hidden;
}

.info-card-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Modern Input Fields */
.modern-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modern-input.is-valid {
    border-color: var(--success);
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2343e97b'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.modern-input.is-invalid {
    border-color: var(--danger);
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6b6b'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

/* Modern Statistics Cards */
.stat-card-modern {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card-modern:hover::before {
    opacity: 0.05;
}

.stat-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-icon-modern {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.stat-icon-modern.gradient-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-icon-modern.gradient-secondary {
    background: var(--secondary-gradient);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.stat-icon-modern.gradient-info {
    background: var(--info-gradient);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.stat-icon-modern.gradient-success {
    background: var(--success-gradient);
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

/* Loading Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Animation */
.success-animation {
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(67, 233, 123, 0.5); }
}

/* Badge with Gradient */
.badge-gradient {
    padding: 6px 15px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
}

.badge-gradient-primary {
    background: var(--primary-gradient);
    color: white;
}

.badge-gradient-secondary {
    background: var(--secondary-gradient);
    color: white;
}

/* Alert Modern */
.alert-modern {
    padding: 20px 25px;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    animation: slideInRight 0.5s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-modern-success {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border-left-color: var(--success);
    color: #155724;
}

.alert-modern-error {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(254, 202, 87, 0.1) 100%);
    border-left-color: var(--danger);
    color: #721c24;
}

.alert-modern-info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-left-color: var(--info);
    color: #004085;
}

/* Required Field */
.required-field {
    color: var(--danger);
    font-weight: 700;
    margin-left: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-card, .card-3d {
        padding: 20px;
    }

    .stat-card-modern {
        margin-bottom: 15px;
    }
}

/* Smooth Transitions */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
