/* Modern Forms CSS - Reusable Form Styling */
/* Diseño moderno y atractivo para formularios */

.modern-form-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.modern-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

.modern-form-title {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.modern-form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.modern-form-subtitle {
    color: #718096;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 400;
}

.modern-form-group {
    margin-bottom: 25px;
    position: relative;
}

.modern-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.modern-form-col {
    flex: 1;
    min-width: 250px;
}

.modern-form-label {
    display: block;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modern-form-label i {
    margin-left: 8px;
    color: #667eea;
    font-size: 12px;
}

.modern-form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    color: #2d3748;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.modern-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.modern-form-input:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modern-form-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

/* Error Styling */
.modern-form-error {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.modern-form-error::before {
    content: '⚠';
    margin-right: 6px;
    font-size: 14px;
}

.modern-form-input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* File Upload Styling */
.modern-file-upload {
    position: relative;
    display: block;
    width: 100%;
}

.modern-file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modern-file-upload-area:hover {
    border-color: #667eea;
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.modern-file-upload-area.dragover {
    border-color: #667eea;
    background: linear-gradient(145deg, #edf2ff 0%, #e6fffa 100%);
}

.modern-file-upload-text {
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
}

.modern-file-upload-text i {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 10px;
    display: block;
}

.modern-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Button Styling */
.modern-form-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.modern-form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.modern-form-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.modern-form-button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.modern-form-button i {
    margin-left: 8px;
    font-size: 14px;
}

/* Loading Animation */
.modern-form-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modern-form-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.modern-form-loading-text {
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

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

/* Media Upload Section */
.modern-media-section {
    background: #f7fafc;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #e2e8f0;
}

.modern-media-title {
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.modern-media-title::before {
    content: '📷';
    margin-right: 10px;
    font-size: 24px;
}

/* Radio Button Styling */
.modern-radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.modern-radio-input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-radio-input:checked {
    border-color: #667eea;
    background: #667eea;
}

.modern-radio-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
}

.modern-radio-label {
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-form-container {
        padding: 25px;
        border-radius: 16px;
    }

    .modern-form-row {
        flex-direction: column;
        gap: 0;
    }

    .modern-form-col {
        min-width: unset;
    }

    .modern-form-title {
        font-size: 24px;
    }

    .modern-file-upload-area {
        padding: 30px 15px;
    }

    .modern-form-button {
        width: 100%;
        padding: 18px 32px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern List Styles */
.modern-list-container {
    font-family: inherit;
}

.modern-list-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.modern-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.modern-list-card-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 25px;
    border: 3px solid #e2e8f0;
}

.modern-list-card-content {
    flex-grow: 1;
}

.modern-list-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.modern-list-card-title a {
    color: inherit;
    text-decoration: none;
}

.modern-list-card-title a:hover {
    color: #667eea;
}

.modern-list-card-subtitle {
    font-size: 14px;
    color: #718096;
    margin-bottom: 0;
}

.modern-list-card-actions {
    display: flex;
    gap: 10px;
}

.modern-list-action-btn {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.modern-list-action-btn.edit {
    background: #667eea;
}

.modern-list-action-btn.edit:hover {
    background: #5a67d8;
}

.modern-list-action-btn.delete {
    background: #e53e3e;
}

.modern-list-action-btn.delete:hover {
    background: #c53030;
}

.modern-list-action-btn i {
    font-size: 16px;
}

/* Modern Table Styles */
.modern-table-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    padding: 30px;
    margin-top: 20px;
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
}

.modern-table thead th {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 15px 20px;
    border-bottom: 2px solid #e2e8f0;
}

.modern-table tbody td {
    font-size: 15px;
    color: #2d3748;
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
}

.modern-table tbody tr {
    transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: #f7fafc;
}

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

/* DataTables Integration */
.dataTables_wrapper .dataTables_filter input {
    width: auto;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 10px;
}
.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #667eea;
}

.dataTables_wrapper .dataTables_length select {
    width: auto;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    margin-right: 10px;
    background-position: right 10px center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 15px;
    margin: 0 2px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #667eea;
    color: white !important;
    border-color: #667eea;
}

/* Modern Pagination Styles */
.modern-pagination .pagination {
    justify-content: center;
    margin-top: 30px;
}

.modern-pagination .page-item .page-link {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    margin: 0 4px;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-pagination .page-item .page-link:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.modern-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modern-pagination .page-item.disabled .page-link {
    background-color: #f7fafc;
    color: #a0aec0;
    border-color: #e2e8f0;
}
