/* Gift Voucher Sender - Modern Admin Styles */

/* Reset and Base Styles */
.gvs-admin-content * {
    box-sizing: border-box;
}

/* Header Section */
.gvs-admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0 -20px 30px -22px;
    padding: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.gvs-admin-title {
    display: flex;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gvs-admin-title .dashicons {
    font-size: 36px;
    margin-right: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.gvs-admin-title h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.gvs-admin-nav {
    display: flex;
    padding: 0 32px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.gvs-nav-link {
    padding: 16px 24px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.gvs-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.gvs-nav-link:hover::before {
    left: 100%;
}

.gvs-nav-link:hover,
.gvs-nav-link.active {
    color: white;
    border-bottom-color: #ffd700;
    background: rgba(255, 255, 255, 0.1);
}

/* Content Area */
.gvs-admin-content {
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
}

/* Header Actions */
.gvs-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
}

.gvs-header-actions h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Button Styles */
.button.button-primary,
.gvs-send-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.button.button-primary::before,
.gvs-send-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.button.button-primary:hover::before,
.gvs-send-button:hover::before {
    left: 100%;
}

.button.button-primary:hover,
.gvs-send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.button.button-primary:active,
.gvs-send-button:active {
    transform: translateY(0);
}

/* Table Container */
.gvs-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.gvs-table-container .wp-list-table {
    border: none;
    margin: 0;
}

.gvs-table-container .wp-list-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 700;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    padding: 20px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gvs-table-container .wp-list-table td {
    padding: 20px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    font-size: 14px;
}

.gvs-table-container .wp-list-table tbody tr {
    transition: all 0.2s ease;
}

.gvs-table-container .wp-list-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Empty State */
.gvs-empty-state {
    text-align: center;
    padding: 80px 40px;
    color: #6b7280;
}

.gvs-empty-state .dashicons {
    font-size: 80px;
    color: #d1d5db;
    margin-bottom: 24px;
    display: block;
    opacity: 0.6;
}

.gvs-empty-state h3 {
    color: #374151;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.gvs-empty-state p {
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Status Badges */
.gvs-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gvs-status.active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.gvs-status.inactive {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.gvs-delivery-status {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gvs-delivery-status.sent {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.gvs-delivery-status.failed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.gvs-delivery-status.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.gvs-delivery-status.processing {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* Form Builder */
.gvs-form-builder {
    max-width: 900px;
}

.gvs-form-section {
    background: white;
    border-radius: 12px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.gvs-form-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.gvs-form-section h3 {
    margin: 0;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gvs-form-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.gvs-form-section .form-table {
    margin: 0;
    background: white;
}

.gvs-form-section .form-table th {
    width: 220px;
    padding: 32px;
    font-weight: 700;
    color: #374151;
    font-size: 14px;
    vertical-align: top;
}

.gvs-form-section .form-table td {
    padding: 32px 32px 32px 0;
}

/* Image Upload */
.gvs-image-upload {
    max-width: 100%;
}

.gvs-image-preview {
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    position: relative;
    overflow: hidden;
}

.gvs-image-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.gvs-image-preview:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.gvs-image-preview:hover::before {
    left: 100%;
}

.gvs-image-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.gvs-image-preview img:hover {
    transform: scale(1.02);
}

.gvs-image-placeholder {
    color: #6b7280;
}

.gvs-image-placeholder .dashicons {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
    display: block;
}

.gvs-image-placeholder p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.gvs-image-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.gvs-upload-image,
.gvs-remove-image {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gvs-upload-image {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.gvs-upload-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.gvs-remove-image {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.gvs-remove-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

/* Copy Shortcode */
.gvs-copy-shortcode {
    color: #667eea;
    vertical-align: middle;
    margin-left: 12px;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.gvs-copy-shortcode:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #4338ca;
    transform: scale(1.1);
}

/* Filters */
.gvs-filters {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.gvs-filters select {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    min-width: 180px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gvs-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* System Status */
.gvs-status-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
}

.gvs-status-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
}

.gvs-status-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
}

#gvs-system-status table {
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#gvs-system-status th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#gvs-system-status td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    font-size: 14px;
}

#gvs-system-status tr:last-child td {
    border-bottom: none;
}

/* Debug Logs */
.gvs-debug-logs {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.gvs-log-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 24px;
}

.gvs-log-entry {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.gvs-log-entry:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.gvs-log-entry:last-child {
    border-bottom: none;
}

.gvs-log-timestamp {
    color: #6b7280;
    margin-right: 20px;
    font-weight: 600;
}

.gvs-log-message {
    color: #374151;
}

/* Loading States */
.gvs-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.gvs-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Inputs */
.gvs-form-section input[type="text"],
.gvs-form-section input[type="password"],
.gvs-form-section input[type="url"],
.gvs-form-section textarea,
.gvs-form-section select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.gvs-form-section input[type="text"]:focus,
.gvs-form-section input[type="password"]:focus,
.gvs-form-section input[type="url"]:focus,
.gvs-form-section textarea:focus,
.gvs-form-section select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .gvs-admin-header {
        margin: 0 -10px 20px -12px;
        padding: 0;
    }
    
    .gvs-admin-title,
    .gvs-admin-nav {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .gvs-header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .gvs-form-section .form-table th,
    .gvs-form-section .form-table td {
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .gvs-admin-nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .gvs-nav-link {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .gvs-form-section .form-table,
    .gvs-form-section .form-table tbody,
    .gvs-form-section .form-table tr,
    .gvs-form-section .form-table th,
    .gvs-form-section .form-table td {
        display: block;
        width: 100%;
    }
    
    .gvs-form-section .form-table th {
        padding-bottom: 8px;
        border-bottom: none;
    }
    
    .gvs-form-section .form-table td {
        padding-top: 8px;
        padding-left: 20px;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .gvs-image-actions {
        justify-content: center;
    }
    
    .gvs-filters {
        width: 100%;
        justify-content: space-between;
    }
    
    .gvs-table-container {
        overflow-x: auto;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gvs-form-section {
    animation: fadeInUp 0.6s ease;
}

/* Error States */
.gvs-field.error input {
    border-color: #ef4444;
    background: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

/* Success States */
.notice.notice-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.notice.notice-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.notice.notice-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.notice.notice-info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}