/* Admin Style for Awards Registration Plugin */

/* General Admin Styles */
.awards-admin-wrap {
    margin: 20px 20px 0 0;
}

.awards-admin-header {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.awards-admin-header h1 {
    color: #23282d;
    font-size: 32px;
    margin-bottom: 10px;
}

.awards-admin-header h1 .dashicons {
    margin-right: 10px;
    color: #667eea;
}

.awards-admin-header .description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Import Styles */
.import-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
}

.import-form-card,
.import-info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.import-form-card h3,
.import-info-card h3 {
    margin: 0;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #e1e5e9;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.import-form {
    padding: 25px;
}

.upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f7fafc;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #e6fffa;
}

.upload-icon .dashicons {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Button Styles */
.button-large {
    height: 40px;
    line-height: 38px;
    padding: 0 20px;
    font-size: 16px;
}

/* Table Styles */
.awards-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.awards-table th,
.awards-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.awards-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Styles */
.awards-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.awards-form .form-table th {
    padding: 15px 10px 15px 0;
    width: 200px;
    font-weight: 600;
}

.awards-form .form-table td {
    padding: 15px 10px;
}

.awards-form input[type="text"],
.awards-form input[type="email"],
.awards-form input[type="password"],
.awards-form select,
.awards-form textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.awards-form input:focus,
.awards-form select:focus,
.awards-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* Notice Styles */
.awards-notice {
    margin: 15px 0;
    padding: 15px;
    border-radius: 4px;
}

.awards-notice.notice-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.awards-notice.notice-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.awards-notice.notice-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

/* Stats Boxes */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .import-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .awards-admin-wrap {
        margin: 10px 10px 0 0;
    }
    
    .awards-admin-header {
        padding: 15px;
    }
    
    .awards-admin-header h1 {
        font-size: 24px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #ddd;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-10 {
    gap: 10px;
}