/* Professional Frontend Styles for STA Renewals */

/* Global Styles */
.sta-renewals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.sta-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sta-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
}

.sta-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Form Styles */
.sta-form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.sta-form-section {
    margin-bottom: 30px;
}

.sta-form-section h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.sta-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .sta-form-grid {
        grid-template-columns: 1fr;
    }
}

.sta-form-group {
    margin-bottom: 20px;
}

.sta-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.sta-form-group input,
.sta-form-group select,
.sta-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.sta-form-group input:focus,
.sta-form-group select:focus,
.sta-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.sta-form-group input.error,
.sta-form-group select.error,
.sta-form-group textarea.error {
    border-color: #e74c3c;
}

.sta-error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* File Input Styles */
.sta-form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #bdc3c7;
    background: #f8f9fa;
    cursor: pointer;
}

.sta-form-group input[type="file"]:hover {
    border-color: #3498db;
    background: #ecf0f1;
}

.sta-form-group small {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Button Styles */
.sta-form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.sta-submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sta-submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sta-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.sta-submit-loading {
    display: none;
}

/* Message Styles */
.sta-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.sta-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sta-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sta-message-loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* List Styles - Professional Table Layout */
.sta-list-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.sta-list-header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 20px 30px;
}

.sta-list-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.sta-list-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Professional Table Styles */
.sta-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.sta-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    text-align: left;
    padding: 15px 20px;
    border-bottom: 2px solid #e9ecef;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sta-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.sta-table tr:hover {
    background: #f8f9fa;
}

.sta-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.sta-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sta-status-active {
    background: #d4edda;
    color: #155724;
}

.sta-status-pending {
    background: #fff3cd;
    color: #856404;
}

.sta-status-expired {
    background: #f8d7da;
    color: #721c24;
}

.sta-status-renewed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Action Buttons */
.sta-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 2px;
    transition: all 0.3s ease;
}

.sta-view-btn {
    background: #3498db;
    color: white;
}

.sta-view-btn:hover {
    background: #2980b9;
}

.sta-edit-btn {
    background: #f39c12;
    color: white;
}

.sta-edit-btn:hover {
    background: #e67e22;
}

.sta-delete-btn {
    background: #e74c3c;
    color: white;
}

.sta-delete-btn:hover {
    background: #c0392b;
}

/* Search and Filter Styles */
.sta-filters {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.sta-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.sta-search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
}

.sta-search-btn,
.sta-filter-btn {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.sta-search-btn:hover,
.sta-filter-btn:hover {
    background: #2980b9;
}

.sta-filter-options {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sta-filter-options select {
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    font-size: 14px;
}

/* Pagination Styles */
.sta-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.sta-page-link,
.sta-page-current {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sta-page-link {
    background: white;
    color: #3498db;
    border: 1px solid #e1e8ed;
}

.sta-page-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.sta-page-current {
    background: #3498db;
    color: white;
    border: 1px solid #3498db;
}

/* Empty State */
.sta-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.sta-empty-state h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

/* Modal Styles */
.sta-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.sta-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sta-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.sta-modal-close:hover {
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sta-renewals-container {
        padding: 10px;
    }
    
    .sta-header {
        padding: 20px;
    }
    
    .sta-header h1 {
        font-size: 2em;
    }
    
    .sta-form-container {
        padding: 20px;
    }
    
    .sta-table {
        font-size: 12px;
    }
    
    .sta-table th,
    .sta-table td {
        padding: 10px 8px;
    }
    
    .sta-filters {
        padding: 15px 20px;
    }
    
    .sta-search-box {
        flex-direction: column;
    }
    
    .sta-filter-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sta-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* Loading States */
.sta-loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.sta-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Page Styles */
.sta-success-page {
    text-align: center;
    padding: 40px 20px;
}

.sta-success-icon {
    font-size: 4em;
    color: #27ae60;
    margin-bottom: 20px;
}

.sta-success-title {
    color: #2c3e50;
    margin-bottom: 15px;
}

.sta-success-message {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.sta-success-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    text-align: left;
}

.sta-success-actions {
    margin-top: 30px;
}

.sta-btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.sta-btn-secondary:hover {
    background: #7f8c8d;
}

/* Checkbox Styling */
.sta-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.sta-checkbox-label input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.sta-checkbox-text {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
}

/* reCAPTCHA Styling */
.g-recaptcha {
    margin: 10px 0;
}

/* Calendar Options */
.sta-calendar-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.sta-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.sta-calendar-btn:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

.sta-calendar-btn.outlook {
    background: #0078d4;
}

.sta-calendar-btn.outlook:hover {
    background: #005a9e;
}

.sta-calendar-btn.google {
    background: #4285f4;
}

.sta-calendar-btn.google:hover {
    background: #3367d6;
}

/* Service Info Box */
.sta-service-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.sta-info-box h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.sta-info-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.sta-info-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.sta-info-item span {
    color: #6c757d;
}

/* Field Descriptions */
.sta-field-description {
    margin: 5px 0 0 0;
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
}

/* Dashboard Styles */
.sta-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sta-stat-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sta-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sta-stat-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.sta-stat-content h3 {
    font-size: 2em;
    color: #3498db;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.sta-stat-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

/* Actions Container */
.sta-actions-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.sta-actions-container h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.sta-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.sta-action-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.sta-action-card:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.sta-action-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.sta-action-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.sta-action-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    .sta-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .sta-stat-card {
        padding: 20px;
    }
    
    .sta-stat-icon {
        font-size: 2em;
    }
    
    .sta-stat-content h3 {
        font-size: 1.5em;
    }
    
    .sta-actions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sta-action-card {
        padding: 20px;
    }
}

