/* Dashboard Styles */

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */
.dashboard-section {
    padding: 120px 0 60px; /* Default padding for desktop */
    background-color: #121212;
    min-height: calc(100vh - 300px);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--theme-primary);
}

.dashboard-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-profile-image .profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-profile-image .profile-placeholder svg {
    width: 30px;
    height: 30px;
    color: #555;
}

.dashboard-title {
    color: #ffffff;
    font-size: 32px;
    margin: 0;
}

.dashboard-welcome {
    color: #999;
    font-size: 18px;
    margin-top: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dashboard-main {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-card-title {
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card-title svg {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    color: var(--theme-primary);
}

/* ========================================
   DASHBOARD BUTTONS
   ======================================== */
.dashboard-actions {
    display: flex;
    gap: 15px;
}

.dashboard-btn {
    padding: 10px 20px;
    background-color: #2a2a2a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.dashboard-btn:hover {
    background-color: #3a3a3a;
}

.dashboard-btn-primary {
    background-color: var(--theme-primary);
}

.dashboard-btn-primary:hover {
    background-color: var(--theme-secondary);
}

.dashboard-btn svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

/* ========================================
   PRODUCT LIST
   ======================================== */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 6px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.product-icon {
    width: 60px;
    height: 60px;
    background-color: #333;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.product-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,168,255,0.3) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.product-info {
    flex-grow: 1;
}

.product-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
}

.product-meta {
    color: #999;
    font-size: 14px;
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.product-meta span {
    display: flex;
    align-items: center;
}

.product-meta svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    flex-shrink: 0;
}

.product-actions {
    margin-left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-btn {
    padding: 8px 12px;
    background-color: #333;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.product-btn:hover {
    background-color: #444;
}

.product-btn-secondary {
    background-color: transparent;
    border: 1px solid #555;
    color: #ffffff;
}

.product-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #666;
}

/* ========================================
   ACTIVITY LIST
   ======================================== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.activity-item {
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 6px;
}

.activity-type {
    color: var(--theme-primary);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
}

.activity-description {
    color: #ffffff;
    font-size: 14px;
    margin: 0 0 8px;
}

.activity-time {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.activity-time svg {
    width: 12px;
    height: 12px;
    margin-right: 5px;
}

/* ========================================
   EMPTY STATES
   ======================================== */
.empty-state {
    padding: 30px;
    text-align: center;
    color: #999;
}

.empty-state svg {
    width: 60px;
    height: 60px;
    color: #333;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 10px;
}

.empty-state p {
    font-size: 14px;
    margin: 0 0 20px;
}

/* ========================================
   SEARCH FUNCTIONALITY
   ======================================== */
.search-container {
    position: relative;
    width: 250px;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 2px rgba(255, 111, 0, 0.2);
}

.search-input::placeholder {
    color: #777;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #777;
    pointer-events: none;
}

.no-results {
    padding: 20px;
    text-align: center;
    background-color: #2a2a2a;
    border-radius: 6px;
    color: #aaa;
    margin-top: 10px;
}

/* ========================================
   LINK PURCHASES PAGE
   ======================================== */
.link-section {
    padding: 120px 0 60px; /* Default padding for desktop */
    background-color: #121212;
    min-height: calc(100vh - 300px);
}

.link-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.link-title {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 10px;
}

.link-subtitle {
    color: #aaaaaa;
    font-size: 18px;
}

.link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

@media (min-width: 768px) {
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.link-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.link-card-title {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 20px;
}

.link-card-title svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    stroke: var(--theme-primary);
}

.link-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
}

.form-group input::placeholder {
    color: #777;
}

button {
    background-color: var(--theme-primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--theme-secondary);
}

.link-help {
    background-color: #222;
    padding: 20px;
    border-radius: 4px;
}

.link-help h3 {
    color: var(--theme-primary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.link-help ol {
    color: #aaa;
    margin-left: 20px;
    margin-bottom: 15px;
}

.link-help li {
    margin-bottom: 8px;
}

.link-help p {
    color: #aaa;
    margin-bottom: 0;
}

/* ========================================
   LOGIN & REGISTER PAGES
   ======================================== */
.login-section,
.register-section {
    padding: 120px 0 80px; /* Default padding for desktop */
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #121212;
}

.login-container,
.register-container {
    max-width: 500px;
    width: 100%;
    padding: 40px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-logo,
.register-logo {
    display: block;
    width: 180px;
    margin: 0 auto 30px;
}

.login-title,
.register-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.login-form .form-group,
.register-form .form-group {
    margin-bottom: 20px;
}

.login-form label,
.register-form label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
}

.login-form input,
.register-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus,
.register-form input:focus {
    border-color: var(--theme-primary);
    outline: none;
}

.login-form button,
.register-form button {
    width: 100%;
    padding: 14px;
    background-color: var(--theme-primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover,
.register-form button:hover {
    background-color: var(--theme-secondary);
}

.login-links,
.register-links {
    margin-top: 25px;
    text-align: center;
    color: #999;
}

.login-links a,
.register-links a {
    color: var(--theme-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.login-links a:hover,
.register-links a:hover {
    color: var(--theme-secondary);
    text-decoration: underline;
}

.name-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.password-requirements {
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.terms-checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.terms-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================
   MESSAGE STYLES
   ======================================== */
.error-message {
    background-color: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #ff3b30;
}

.success-message {
    background-color: #1b5e20;
    color: #ffffff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #66bb6a;
    font-weight: 500;
}

/* ========================================
   USER PROFILE CARD
   ======================================== */
.user-profile-card {
    margin-bottom: 20px;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--theme-primary);
}

.user-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-info {
    flex: 1;
}

.user-name {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 8px;
}

.edit-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--theme-primary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.edit-profile-link:hover {
    color: var(--theme-secondary);
    text-decoration: underline;
}

.edit-profile-link svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   PROFILE PAGE STYLES
   ======================================== */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-section {
    background-color: #222;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 10px;
}

.section-title {
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.section-description {
    color: #999;
    font-size: 14px;
    margin: -10px 0 20px;
}

.profile-image-container {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder svg {
    width: 50px;
    height: 50px;
    color: #555;
}

.profile-image-upload {
    display: flex;
    flex-direction: column;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.file-upload-btn:hover {
    background-color: #444;
}

.file-upload-btn svg {
    width: 16px;
    height: 16px;
}

.upload-help {
    color: #777;
    font-size: 12px;
    margin-top: 5px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-help {
    color: #777;
    font-size: 12px;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--theme-primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--theme-secondary);
}

.btn-secondary {
    background-color: #333;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: #444;
}

.security-tips {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-tip {
    background-color: #222;
    border-left: 3px solid var(--theme-primary);
    padding: 12px 15px;
}

.security-tip h3 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 5px;
}

.security-tip p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 992px) {
    .dashboard-section,
    .link-section,
    .login-section,
    .register-section {
        padding: 100px 0 50px; /* Adjusted padding for tablets */
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header,
    .link-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .dashboard-user-info {
        width: 100%;
    }
    
    .dashboard-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .dashboard-section,
    .link-section,
    .login-section,
    .register-section {
        padding: 90px 0 40px; /* Increased top padding to account for fixed navbar */
    }
    
    .dashboard-container,
    .link-container {
        padding: 0 15px; /* Reduce side padding on mobile */
    }
    
    .user-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-profile-image {
        margin: 0 auto 10px;
    }
    
    .dashboard-title,
    .link-title {
        font-size: 24px;
    }
    
    .dashboard-welcome,
    .link-subtitle {
        font-size: 16px;
    }
    
    .dashboard-actions {
        flex-wrap: wrap;
    }
    
    .search-container {
        width: 100%;
        margin-top: 15px;
    }
    
    /* Make the search box and title stack on mobile */
    div[style*="display: flex; justify-content: space-between"] {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-main, 
    .dashboard-card,
    .link-card,
    .login-container,
    .register-container {
        padding: 15px;
    }
    
    .login-title,
    .register-title {
        font-size: 24px;
    }
    
    .name-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* Product items responsive */
    .product-item {
        flex-wrap: wrap;
        padding: 12px;
    }
    
    .product-icon {
        margin-right: 12px !important;
        flex-shrink: 0;
    }
    
    .product-info {
        flex: 1;
        min-width: 0; /* Allow text to shrink */
        margin-bottom: 12px;
    }
    
    .product-name {
        font-size: 15px;
        word-break: break-word;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }
    
    .product-meta span {
        word-break: break-all;
    }
    
    .product-actions {
        width: 100%;
        margin-left: 0;
        flex-basis: 100%; /* Force button to new line */
    }
    
    .product-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Dashboard card title */
    .dashboard-card-title {
        font-size: 18px;
        flex-wrap: wrap;
    }
    
    /* License row responsive - stack vertically on mobile */
    .license-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
    }
    
    .license-row .license-info {
        width: 100%;
    }
    
    .license-row .license-info > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .license-row .license-info code {
        font-size: 11px !important;
        word-break: break-all;
        max-width: 100%;
    }
    
    .license-row .product-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Extra small devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .dashboard-container,
    .link-container {
        padding: 0 10px; /* Even less padding for very small screens */
    }
    
    .dashboard-main,
    .dashboard-card,
    .link-card {
        padding: 12px;
    }
    
    .dashboard-title,
    .link-title {
        font-size: 22px;
    }
    
    .dashboard-welcome,
    .link-subtitle {
        font-size: 14px;
    }
    
    .product-item {
        padding: 10px;
    }
    
    .product-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-meta {
        font-size: 12px;
    }
    
    .product-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .dashboard-card-title {
        font-size: 16px;
    }
    
    .dashboard-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 8px 12px 8px 35px;
    }
    
    .search-icon {
        width: 14px;
        height: 14px;
        left: 10px;
    }
    
    /* License row for extra small devices */
    .license-row .license-info code {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
    
    .license-row .license-info span {
        font-size: 11px !important;
    }
}

/* ========================================
   ADMIN DASHBOARD STYLES
   ======================================== */

/* Admin Body Styles */
body.admin-page {
    background: var(--darker-bg) !important;
    color: var(--text-primary) !important;
    padding-top: 90px;
}

/* Admin Header */
.admin-header {
    background: var(--gradient-card);
    color: var(--text-primary);
    padding: 20px 40px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.admin-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    color: var(--text-secondary);
}

/* Admin Buttons */
.admin-btn {
    padding: 10px 20px;
    border-radius: var(--small-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-block;
}

.admin-btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.admin-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-theme-hover);
}

.admin-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.admin-btn-danger {
    background: #dc3545;
    color: var(--white);
}

.admin-btn-danger:hover {
    background: #c82333;
}

/* Admin Container */
.admin-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 40px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-primary);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--theme-light);
}

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

.stat-card {
    background: var(--gradient-card);
    padding: 20px;
    border-radius: var(--small-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--theme-primary);
}

/* Filters */
.filters {
    background: var(--gradient-card);
    padding: 20px;
    border-radius: var(--small-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filters form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 14px;
    background: var(--dark-bg);
    color: var(--text-primary);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--theme-primary);
    background: var(--darker-bg);
}

/* Table Container */
.table-container {
    background: var(--gradient-card);
    border-radius: var(--small-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--darker-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(40, 167, 69, 0.2);
    color: #5cd88a;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-suspended {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.admin-badge {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* Actions */
.actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    background: var(--theme-primary);
    color: var(--white);
}

.btn-small:hover {
    background: var(--theme-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination a:hover {
    background: var(--darker-bg);
    border-color: var(--theme-primary);
}

.pagination .current {
    background: var(--theme-primary);
    color: var(--white);
    border-color: var(--theme-primary);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* Admin Edit Page Styles */
.grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.card {
    background: var(--gradient-card);
    border-radius: var(--small-radius);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 14px;
    background: var(--dark-bg);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--theme-primary);
    background: var(--darker-bg);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 10px;
    flex-wrap: wrap;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.info-value {
    color: var(--text-primary);
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: right;
    flex: 1;
    min-width: 0;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #5cd88a;
    border-left: 4px solid #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
    border-left: 4px solid #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Product & Activity Lists */
.product-list,
.activity-list {
    list-style: none;
}

.product-item {
    padding: 12px;
    background: var(--dark-bg);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-license {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: monospace;
}

.activity-item {
    padding: 12px;
    border-left: 3px solid var(--theme-primary);
    background: var(--dark-bg);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-type {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.activity-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    
    .admin-header h1 {
        font-size: 20px;
    }
    
    .admin-container {
        padding: 0 20px;
        margin: 20px auto;
    }
    
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 12px;
    }
    
    .stat-card .value {
        font-size: 24px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-header-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .admin-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 13px;
    }
    
    .admin-btn {
        width: 100%;
        text-align: center;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    /* Card content overflow fixes */
    .card {
        padding: 15px;
        overflow: hidden;
    }
    
    .card h2 {
        font-size: 16px;
        word-break: break-word;
    }
    
    /* Info rows on mobile */
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-value {
        text-align: left;
        font-size: 13px;
    }
    
    /* Monospace text wrapping */
    .info-value[style*="monospace"] {
        word-break: break-all;
        font-size: 11px;
    }
    
    /* Activity list on mobile */
    .activity-item {
        font-size: 12px;
    }
    
    .activity-desc {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .activity-desc strong {
        word-break: break-all;
    }
    
    .activity-time {
        font-size: 11px;
    }
    
    /* USB and plugin cards in admin */
    .card > div[style*="display: flex"] {
        overflow-x: hidden;
    }
    
    .card span[style*="monospace"] {
        word-break: break-all;
        overflow-wrap: break-word;
        font-size: 11px !important;
    }
    
    .card div[style*="font-family: monospace"] {
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    /* Filters */
    .filters {
        padding: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-group input,
    .filter-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Table */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 800px;
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .admin-table th {
        font-size: 11px;
    }
    
    /* Actions */
    .actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-small {
        width: 100%;
        text-align: center;
    }
    
    /* Pagination */
    .pagination {
        padding: 15px 10px;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    /* Back link */
    .back-link {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    /* Cards */
    .card {
        padding: 15px;
    }
    
    .card h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    /* Form groups */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Product and activity items */
    .product-item,
    .activity-item {
        padding: 10px;
        font-size: 13px;
    }
    
    .product-name,
    .activity-type {
        font-size: 13px;
    }
    
    .product-license,
    .activity-desc {
        font-size: 11px;
    }
    
    .activity-time {
        font-size: 10px;
    }
    
    /* Status badges */
    .status-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .admin-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
    
    .admin-header h1 {
        font-size: 18px;
    }
    
    .admin-header-actions {
        font-size: 12px;
    }
    
    .stat-card .value {
        font-size: 28px;
    }
    
    .admin-table {
        min-width: 600px;
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .filters form {
        gap: 10px;
    }
    
    .pagination a,
    .pagination span {
        padding: 5px 8px;
        font-size: 12px;
    }
}

/* ========================================
   USB DEVICE MANAGEMENT
   ======================================== */
.usb-device-card {
    background: var(--theme-dark);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.usb-device-card:hover {
    border-color: var(--theme-primary);
    transform: translateY(-2px);
}

.usb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.usb-info {
    flex: 1;
    min-width: 0;
}

.usb-info h3 {
    margin: 0 0 5px 0;
    color: var(--theme-light);
    font-size: 18px;
    word-break: break-word;
}

.usb-id {
    font-family: 'Courier New', monospace;
    color: var(--theme-secondary);
    font-size: 13px;
    word-break: break-all;
}

.usb-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-deregistered {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-inactive {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.status-blocked {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.usb-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.usb-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-secondary);
    font-size: 14px;
}

.usb-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.usb-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.usb-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.usb-btn-primary {
    background: var(--theme-primary);
    color: white;
}

.usb-btn-primary:hover {
    background: var(--theme-secondary);
}

.usb-btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.usb-btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

.usb-btn-disabled {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.info-banner {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-banner h3 {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-banner p {
    margin: 5px 0;
    color: var(--theme-secondary);
    line-height: 1.6;
}

.info-banner a {
    color: var(--theme-primary);
    text-decoration: underline;
}

.warning-text {
    color: #f59e0b;
    font-size: 13px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-text svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--theme-dark);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

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

.modal-header h2 {
    margin: 0;
    color: var(--theme-light);
}

.close {
    color: var(--theme-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close:hover {
    color: var(--theme-light);
}

.modal-body {
    color: var(--theme-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-body ul li {
    margin: 5px 0;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* USB Device Responsive Styles */
@media (max-width: 768px) {
    .usb-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .usb-status {
        align-self: flex-start;
    }
    
    .usb-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .usb-actions {
        width: 100%;
    }
    
    .usb-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .info-banner {
        padding: 15px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .usb-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .usb-device-card {
        padding: 15px;
    }
    
    .usb-info h3 {
        font-size: 16px;
    }
    
    .usb-id {
        font-size: 12px;
    }
    
    .usb-meta-item {
        font-size: 13px;
    }
    
    .usb-actions {
        flex-direction: column;
    }
    
    .usb-btn {
        width: 100%;
    }
}

/* ========================================
   TRANSFER LICENSES PAGE
   ======================================== */
.transfer-page {
    padding: 120px 0 60px;
    background-color: #121212;
    min-height: calc(100vh - 300px);
}

.transfer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.transfer-header {
    margin-bottom: 40px;
}

.transfer-header a {
    color: var(--theme-primary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 15px;
    display: inline-block;
}

.transfer-header a:hover {
    text-decoration: underline;
}

.transfer-header h1 {
    color: #ffffff;
    font-size: 32px;
    margin: 0 0 10px;
}

.transfer-header p {
    color: #999;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.transfer-section {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.license-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.license-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.license-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.license-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--theme-primary);
}

.license-info {
    flex: 1;
}

.license-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
}

.license-meta {
    color: #999;
    font-size: 14px;
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.license-key {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #333;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--theme-primary);
}

.confirmation-box {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: none;
}

.confirmation-box.show {
    display: block;
}

.confirmation-box h3 {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 16px;
    margin-top: 0;
}

.confirmation-box p {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.confirmation-box ul {
    color: #aaa;
    margin: 10px 0;
    padding-left: 20px;
}

.confirmation-box li {
    margin-bottom: 5px;
}

.confirmation-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.confirmation-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ffc107;
}

.confirmation-checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #aaa;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.transfer-btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.transfer-btn-primary {
    background-color: var(--theme-primary);
    color: #ffffff;
}

.transfer-btn-primary:hover:not(:disabled) {
    background-color: var(--theme-secondary);
}

.transfer-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.transfer-btn-secondary {
    background-color: #333;
    color: #ffffff;
}

.transfer-btn-secondary:hover {
    background-color: #444;
}

.selected-count {
    font-size: 14px;
    color: #999;
    margin-top: 15px;
}

/* Transfer page responsive styles */
@media (max-width: 992px) {
    .transfer-page {
        padding: 100px 0 50px;
    }
}

@media (max-width: 576px) {
    .transfer-page {
        padding: 90px 0 40px;
    }

    .transfer-container {
        padding: 0 15px;
    }

    .transfer-header h1 {
        font-size: 24px;
    }

    .transfer-header p {
        font-size: 14px;
    }

    .transfer-section {
        padding: 15px;
    }

    .license-item {
        flex-wrap: wrap;
        padding: 12px;
    }

    .license-info {
        flex: 1;
        min-width: 0;
        margin-bottom: 12px;
    }

    .license-name {
        font-size: 15px;
        word-break: break-word;
    }

    .license-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }

    .license-meta span {
        word-break: break-all;
    }

    .button-group {
        flex-direction: column;
    }

    .transfer-btn {
        width: 100%;
    }
}
