/* ====================================
   Cyber Token System Pro - Modern Design
   Version: 7.1
   Author: Cyber Cafe
==================================== */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --warning-color: #f56e28;
    --danger-color: #f56565;
    --info-color: #4299e1;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --gray-color: #a0aec0;
    --border-color: #e2e8f0;
}

/* ===== Token Display (Now Serving) ===== */
.cts-modern-current-token {
    margin: 20px 0;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

.cts-token-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.cts-token-card::before {
    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: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-10%, -10%); }
    100% { transform: translate(0, 0); }
}

.cts-token-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    backdrop-filter: blur(5px);
}

.cts-token-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: white;
}

.cts-token-content {
    flex: 1;
}

.cts-token-label {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.cts-token-number {
    color: white;
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* ===== Queue Display ===== */
.cts-modern-queue {
    margin: 30px 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.cts-queue-title {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cts-count {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: normal;
}

.cts-queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.cts-queue-item {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.cts-queue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.cts-queue-item.changed {
    background: #fff8e5;
    border-left: 4px solid var(--warning-color);
}

.cts-item-serial {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 18px;
}

.cts-item-content {
    flex: 1;
}

.cts-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.cts-item-token {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.cts-changed-badge {
    background: var(--warning-color);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.cts-changed-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.cts-item-name {
    font-size: 16px;
    margin-bottom: 8px;
}

.cts-father-name {
    color: var(--gray-color);
    font-size: 13px;
    font-weight: normal;
    margin-left: 5px;
}

.cts-item-datetime {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--gray-color);
}

.cts-date, .cts-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cts-date .dashicons, .cts-time .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

.cts-empty-queue {
    text-align: center;
    padding: 50px;
    background: var(--light-color);
    border-radius: 15px;
    border: 2px dashed var(--border-color);
}

.cts-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cts-empty-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--gray-color);
}

.cts-empty-queue p {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.cts-empty-queue small {
    color: var(--gray-color);
}

/* ===== Mobile Search Section ===== */
.cts-modern-check-system {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

.cts-search-section {
    margin-bottom: 40px;
}

.cts-search-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.cts-search-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.cts-search-icon .dashicons {
    color: white;
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.cts-search-form {
    flex: 1;
    display: flex;
    gap: 10px;
    padding-right: 10px;
}

.cts-search-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    outline: none;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cts-search-form button {
    background: white;
    border: none;
    border-radius: 40px;
    padding: 12px 25px;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cts-search-form button:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cts-search-form button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ===== Results Section ===== */
.cts-results-section {
    margin-top: 30px;
}

.cts-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.cts-results-header h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin: 0;
}

.cts-result-count {
    background: var(--light-color);
    padding: 8px 15px;
    border-radius: 30px;
    color: var(--dark-color);
    font-weight: 500;
}

.cts-customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.cts-customer-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.cts-customer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cts-customer-card.changed {
    border: 2px solid var(--warning-color);
}

.cts-change-banner {
    background: var(--warning-color);
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cts-change-banner .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cts-change-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
}

.cts-card-header {
    padding: 20px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cts-customer-sr {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.status-badge {
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.done {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.cts-customer-details {
    padding: 0 20px 20px;
}

.cts-detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.cts-detail-row:last-child {
    border-bottom: none;
}

.cts-detail-row.highlight {
    background: var(--light-color);
    margin: 5px -20px;
    padding: 12px 20px;
}

.detail-label {
    width: 100px;
    color: var(--gray-color);
    font-size: 14px;
}

.detail-value {
    flex: 1;
    color: var(--dark-color);
    font-weight: 500;
}

.detail-value.token-number {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
}

.cts-detail-row.reason .detail-value {
    color: var(--warning-color);
    font-style: italic;
}

.cts-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-color);
    border-radius: 20px;
}

.no-results-icon {
    width: 100px;
    height: 100px;
    background: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.no-results-icon .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: var(--gray-color);
}

.cts-no-results p {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.cts-no-results small {
    color: var(--gray-color);
}

/* ===== Admin Panel Enhancements ===== */
.cts-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cts-stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.cts-stat-card h3 {
    margin: 0 0 10px 0;
    color: var(--gray-color);
    font-size: 14px;
    text-transform: uppercase;
}

.cts-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--dark-color);
}

.cts-stat-card.completed { border-left-color: var(--success-color); }
.cts-stat-card.pending { border-left-color: var(--warning-color); }
.cts-stat-card.changed { border-left-color: var(--danger-color); }
.cts-stat-card.total { border-left-color: var(--info-color); }

/* ===== Token Badges ===== */
.token-badge {
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
}

.change-badge {
    background: var(--warning-color);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
}

/* ===== Mobile Link ===== */
.mobile-link {
    color: var(--info-color);
    text-decoration: none;
    font-weight: bold;
}

.mobile-link:hover {
    text-decoration: underline;
}

/* ===== Cards ===== */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

/* ===== Customer Row ===== */
.customer-row {
    position: relative;
    background: #f9f9f9;
    border-left: 3px solid var(--info-color);
}

.remove-row {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ===== Marquee Notice Styling ===== */
marquee {
    color: white;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

marquee:hover {
    cursor: pointer;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .cts-token-card {
        padding: 20px;
    }
    
    .cts-token-icon {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .cts-token-icon .dashicons {
        font-size: 30px;
        width: 30px;
        height: 30px;
    }
    
    .cts-token-label {
        font-size: 16px;
    }
    
    .cts-token-number {
        font-size: 36px;
    }
    
    .cts-search-card {
        border-radius: 30px;
        flex-direction: column;
    }
    
    .cts-search-form {
        flex-direction: column;
        width: 100%;
        padding: 10px;
    }
    
    .cts-search-form button {
        justify-content: center;
    }
    
    .cts-customers-grid {
        grid-template-columns: 1fr;
    }
    
    .cts-results-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cts-queue-grid {
        grid-template-columns: 1fr;
    }
    
    .cts-queue-title {
        font-size: 20px;
    }
    
    .cts-admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cts-search-icon {
        width: 40px;
        height: 40px;
    }
    
    .cts-search-icon .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    
    .cts-search-form input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .button-text {
        display: none;
    }
    
    .cts-search-form button .dashicons {
        margin: 0;
    }
    
    .cts-detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .cts-admin-stats {
        grid-template-columns: 1fr;
    }
}