/* Dashboard Styles */

.dashboard-page {
    background: #f5f7fa;
    min-height: 100vh;
}

/* Top Navigation */
.dashboard-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.notification-btn:hover {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.user-menu-btn:hover {
    background: #f5f7fa;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    margin-top: 8px;
    padding: 8px;
    display: none;
    z-index: 1000;
}

.user-dropdown.show,
.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.user-dropdown a:hover {
    background: #f5f7fa;
}

.user-dropdown hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* Notification Menu */
.notification-menu {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 380px;
    margin-top: 8px;
    display: none;
    z-index: 1000;
    max-height: 500px;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.notification-header .mark-all-read {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.notification-header .mark-all-read:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 380px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: rgba(102, 126, 234, 0.05);
}

.notification-item.unread:hover {
    background: rgba(102, 126, 234, 0.08);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.success {
    background: rgba(56, 239, 125, 0.1);
    color: #10b981;
}

.notification-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #f59e0b;
}

.notification-icon.info {
    background: rgba(79, 172, 254, 0.1);
    color: #3b82f6;
}

.notification-icon.danger {
    background: rgba(245, 87, 108, 0.1);
    color: #ef4444;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.notification-content p {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: #9ca3af;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.notification-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

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

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 72px);
}

/* Sidebar */
.dashboard-sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 16px;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav .nav-item:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}

.sidebar-nav .nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.sidebar-nav .nav-item i {
    font-size: 18px;
    width: 20px;
}

.sidebar-divider {
    padding: 16px 16px 8px 16px;
    margin-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.sidebar-divider span {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.sidebar-nav .nav-item.admin-item {
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid var(--primary-color);
}

.sidebar-nav .nav-item.admin-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.sidebar-nav .nav-item.admin-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-left: 3px solid transparent;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.back-to-website {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.dashboard-section {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.stat-icon.green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.stat-icon.orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.stat-icon.purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.stat-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.stat-content p {
    color: var(--gray);
    font-size: 14px;
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2,
.card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.card-header h3 {
    font-size: 18px;
}

.card-body {
    padding: 24px;
}

/* Profile Page Layout */
.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.profile-main {
    display: flex;
    flex-direction: column;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
}

/* Form Styles */
.profile-form,
.password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group .form-control {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-text {
    font-size: 12px;
    color: var(--gray);
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
}

/* Setting Items (Profile Sidebar) */
.setting-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.setting-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
}

.setting-info {
    flex: 1;
}

.setting-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--dark);
}

.setting-info p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

/* Info Items (Account Info) */
.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
}

.info-item label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-item code {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--dark);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.user-id {
    font-size: 11px;
}

/* Quick Links */
.quick-link {
    padding: 12px 0;
}

.quick-link a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.quick-link a:hover {
    color: var(--primary-color);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(56, 239, 125, 0.1);
    color: #10b981;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #f59e0b;
}

.badge-info {
    background: rgba(79, 172, 254, 0.1);
    color: #3b82f6;
}

.badge-secondary {
    background: #e0e0e0;
    color: var(--gray);
}

.badge-primary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.badge-danger {
    background: rgba(245, 87, 108, 0.1);
    color: #ef4444;
}

.badge-expired {
    background: rgba(245, 87, 108, 0.1);
    color: #ef4444;
}

.badge-expiring {
    background: rgba(255, 193, 7, 0.1);
    color: #f59e0b;
}

.badge-active {
    background: rgba(56, 239, 125, 0.1);
    color: #10b981;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* License List */
.license-list {
    padding: 24px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: #f8f9ff;
}

.action-btn i {
    font-size: 32px;
    color: var(--primary-color);
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid #f3f4f6;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    white-space: nowrap;
    min-width: 60px;
}

.filter-group select {
    min-width: 200px;
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
}

.filter-group select:hover {
    border-color: var(--primary-color);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    position: relative;
    margin-left: auto;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box input::placeholder {
    color: #9ca3af;
}

/* Licenses Grid */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* License Card */
.license-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.license-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.license-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.license-card-header .license-package {
    display: flex;
    align-items: center;
    gap: 12px;
}

.license-card-header .license-package i {
    font-size: 24px;
}

.license-card-header .license-package h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.license-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.license-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.license-detail label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-detail code {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--dark);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.license-detail span {
    font-size: 14px;
    color: var(--dark);
}

.license-detail small {
    font-size: 12px;
}

.license-card-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.license-card-footer a {
    flex: 1;
    text-align: center;
    text-decoration: none;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.license-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.license-status.active {
    background: #e8f5e9;
    color: var(--success-color);
}

.license-status.expiring {
    background: #fff3cd;
    color: var(--warning-color);
}

.license-status.expired {
    background: #ffebee;
    color: var(--danger-color);
}

.license-key {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
}

.license-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.license-actions button {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.license-actions button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Invoice Table */
.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table thead {
    background: #f8f9fa;
}

.invoice-table th,
.invoice-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.invoice-table th {
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
}

.invoice-table td {
    color: var(--gray);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 16px;
    }

    .sidebar-nav .nav-item {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .sidebar-footer {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== Grid System ========== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-md-4,
.col-md-6,
.col-md-8 {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

/* ========== Section Cards ========== */
.section-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

.section-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.section-card .card-header h2,
.section-card .card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.section-card .card-body {
    padding: 24px;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ========== Info Grid (License Details) ========== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-item .value {
    font-size: 16px;
    color: #2c3e50;
}

.value-with-copy {
    display: flex;
    gap: 10px;
    align-items: center;
}

.license-key-display,
.activation-code {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #2c3e50;
    border: 1px solid #e9ecef;
    word-break: break-all;
    flex: 1;
}

.btn-copy {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

/* ========== Alert Boxes ========== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-success {
    background: rgba(56, 239, 125, 0.1);
    border-left: 4px solid #10b981;
    color: #065f46;
}

.alert-success i {
    color: #10b981;
}

.alert-danger {
    background: rgba(245, 87, 108, 0.1);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert-danger i {
    color: #ef4444;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.alert-warning i {
    color: #f59e0b;
}

.alert-info {
    background: rgba(79, 172, 254, 0.1);
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.alert-info i {
    color: #3b82f6;
}

.alert ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.alert ul li {
    margin-bottom: 4px;
}

/* ========== Alert Cards ========== */
.alert-card {
    border-left: 4px solid #ffc107;
}

.alert-card .card-body {
    padding: 20px;
}

/* ========== Button Styles ========== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.btn-warning {
    background: #ffc107;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-warning:hover {
    background: #e0a800;
}

/* ========== Activation Steps ========== */
.activation-steps {
    padding-left: 20px;
    line-height: 2;
    color: #2c3e50;
}

.activation-steps li {
    margin-bottom: 12px;
}

/* ========== Password Form ========== */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    flex: 1;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
}

.toggle-password:hover {
    color: #667eea;
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.requirements-list i {
    font-size: 18px;
}

/* ========== Success Page Styles ========== */
.success-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 80px);
}

.success-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s ease-in-out infinite;
}

.success-icon i {
    font-size: 50px;
    color: white;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 239, 125, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(56, 239, 125, 0);
    }
}

.success-content h1 {
    font-size: 42px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-content .lead {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 40px;
}

.license-details-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
    text-align: left;
}

.license-details-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.license-details-card .card-header h2 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.license-details-card .card-body {
    padding: 35px;
}

.license-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.license-info-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.license-info-item label {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-field {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.copy-field .form-control {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
}

.copy-field textarea {
    resize: none;
    font-size: 13px;
}

.license-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.installation-instructions {
    background: white;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.installation-instructions h3 {
    font-size: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.step-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.step-card p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.success-support {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.support-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.support-box i {
    color: #667eea;
    margin-bottom: 15px;
}

.support-box h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.support-box p {
    color: #6c757d;
    margin-bottom: 20px;
}

.success-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ========== Utility Classes ========== */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

.text-muted {
    color: #6c757d !important;
}

.text-success {
    color: #38ef7d !important;
}

.text-info {
    color: #4facfe !important;
}

.text-warning {
    color: #f59e0b !important;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.empty-state-full {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    grid-column: 1 / -1;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.results-info {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .licenses-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
        min-width: unset;
    }

    .search-box {
        max-width: 100%;
        margin-left: 0;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .col-md-4,
    .col-md-6,
    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .info-grid,
    .license-info-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .success-support {
        grid-template-columns: 1fr;
    }

    .license-actions,
    .success-footer {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .faq-list {
        gap: 12px;
    }

    .contact-method {
        padding: 20px;
    }

    .quick-links li a {
        padding: 12px;
    }
}

/* ==========================================
   SUPPORT PAGE STYLES
   ========================================== */

/* Support Form */
.support-form .form-group {
    margin-bottom: 24px;
}

.support-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.support-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.support-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.support-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.support-form .form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

.support-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #f0f2f5;
    transform: translateX(4px);
}

.faq-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.faq-item h4 i {
    color: var(--primary-color);
}

.faq-item p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Contact Methods */
.contact-method {
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-method i {
    margin-bottom: 12px;
}

.contact-method h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 12px 0 8px 0;
}

.contact-method p {
    margin: 8px 0;
    font-size: 14px;
}

.contact-method p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-method p a:hover {
    text-decoration: underline;
}

.contact-method small {
    display: block;
    margin-top: 4px;
}

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 8px;
}

.quick-links li:last-child {
    margin-bottom: 0;
}

.quick-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.quick-links li a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateX(4px);
}

.quick-links li a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* Support Page Sections */
.section-card hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0;
}

.section-card.mt-3 {
    margin-top: 20px;
}

.section-card.mt-4 {
    margin-top: 28px;
}

/* Support Button Block */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.section-card .text-center {
    text-align: center;
}

.section-card .text-center .mb-3 {
    margin-bottom: 16px;
}

.section-card .text-center h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin: 16px 0 12px 0;
}

.section-card .text-center p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}
