/* Fatima Frontend Styles */

/* Search Form */
.fatima-search-form {
    max-width: 500px;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.fatima-search-form input[type="text"] {
    width: 70%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-right: 10px;
    transition: border-color 0.3s ease;
}

.fatima-search-form input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.fatima-search-form button {
    width: 25%;
    padding: 12px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fatima-search-form button:hover {
    background: #005a87;
}

.fatima-search-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#fatima-search-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 500;
}

#fatima-search-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#fatima-search-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#fatima-search-result.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Table Container */
.fatima-table-container {
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.fatima-table-search {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.fatima-table-search input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.fatima-table-search input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Numbers Table */
.fatima-numbers-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.fatima-numbers-table th,
.fatima-numbers-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.fatima-numbers-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.fatima-numbers-table tbody tr:hover {
    background: #f8f9fa;
}

.fatima-numbers-table tbody tr:last-child td {
    border-bottom: none;
}

/* Access Check */
.fatima-access-check {
    max-width: 500px;
    margin: 20px 0;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.fatima-access-check p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #495057;
    line-height: 1.5;
}

.fatima-access-check input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.fatima-access-check input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.fatima-access-check button {
    width: 100%;
    padding: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fatima-access-check button:hover {
    background: #218838;
}

.fatima-access-check button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

#fatima-access-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

#fatima-access-result.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

#fatima-access-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

#fatima-access-result.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

/* Breakdance Integration */
.fatima-breakdance-access-check {
    max-width: 400px;
    margin: 0 auto;
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fatima-breakdance-access-check .fatima-message {
    margin-bottom: 20px;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.fatima-breakdance-access-check .fatima-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.fatima-breakdance-access-check .fatima-access-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.fatima-breakdance-access-check .fatima-access-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.fatima-breakdance-access-check .fatima-access-btn {
    padding: 12px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.fatima-breakdance-access-check .fatima-access-btn:hover {
    background: #005a87;
}

.fatima-breakdance-access-check .fatima-access-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.fatima-breakdance-access-check .fatima-access-result p {
    margin: 0;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.fatima-breakdance-access-check .fatima-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.fatima-breakdance-access-check .fatima-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Loading Animation */
.fatima-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: fatima-spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .fatima-search-form input[type="text"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .fatima-search-form button {
        width: 100%;
    }
    
    .fatima-breakdance-access-check .fatima-form {
        flex-direction: column;
    }
    
    .fatima-numbers-table {
        font-size: 14px;
    }
    
    .fatima-numbers-table th,
    .fatima-numbers-table td {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .fatima-search-form,
    .fatima-access-check,
    .fatima-breakdance-access-check {
        padding: 15px;
        margin: 10px 0;
    }
    
    .fatima-numbers-table th,
    .fatima-numbers-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .fatima-search-form,
    .fatima-access-check {
        display: none;
    }
    
    .fatima-numbers-table {
        border: 1px solid #000;
    }
    
    .fatima-numbers-table th,
    .fatima-numbers-table td {
        border: 1px solid #000;
        padding: 5px;
    }
}