/* FORM ELEMENTS */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #c62828;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
    background: white;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}


/*  BUTTONS */

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.btn-secondary {
    padding: 14px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #424242;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-secondary:hover {
    background: #fafafa;
    border-color: #bdbdbd;
}


/* ACTION BUTTONS*/

.btn-action {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.btn-edit {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-edit:hover {
    background: #1976d2;
    color: white;
}

.btn-delete {
    background: #ffebee;
    color: #c62828;
}

.btn-delete:hover {
    background: #c62828;
    color: white;
}

.btn-approve {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-approve:hover {
    background: #2e7d32;
    color: white;
}

.btn-add {
    background: linear-gradient(135deg, #ff6f00 0%, #ffa726 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
}


/* BADGES */

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

.badge-info {
    background: #e3f2fd;
    color: #1976d2;
}


/* TABLES */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table thead {
    background: #f8fafc;
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    color: #424242;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}


/* SEARCH */

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input {
    flex: 1;
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input input:focus {
    outline: none;
    border-color: #ff6f00;
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9e9e9e;
    font-size: 18px;
}


/* MODAL */

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1b1b1b;
}

.btn-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #9e9e9e;
    transition: all 0.3s ease;
}

.btn-close:hover {
    color: #424242;
    transform: rotate(90deg);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}


/* REPORTS / ANALYTICS */

.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.center-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* ==============================
   Inline Style Classes (extracted from blade)
   ============================== */

/* Form group compact for search filters */
.form-group-compact {
    margin: 0;
    width: 200px;
}

/* Modal sizes */
.modal-large .modal-content {
    max-width: 900px;
}

.modal-small .modal-content {
    max-width: 500px;
}

/* Tab navigation */
.tab-navigation {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    gap: 20px;
}

/* Form layouts */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group-full {
    grid-column: 1 / -1;
}

/* Required field indicator */
.required {
    color: #d32f2f;
}

/* Input group with button */
.input-group-flex {
    display: flex;
    gap: 10px;
}

.input-group-flex .btn-secondary {
    width: auto;
    padding: 0 20px;
    flex: 0 0 auto;
}

/* Help text */
.help-text {
    color: #666;
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
}

/* Modal body layouts */
.modal-body-center {
    text-align: center;
    padding: 20px;
}

/* Large icon in modal */
.icon-large {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Text description in modal */
.modal-description {
    margin-bottom: 20px;
    color: #666;
}

/* Credentials display box */
.credentials-box {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.credentials-box > div {
    margin-bottom: 10px;
}

.credentials-box > div:last-child {
    margin-bottom: 0;
}

/* Monospace text for credentials */
.text-mono {
    font-family: monospace;
    margin-top: 5px;
}

/* Password display style */
.password-display {
    font-family: monospace;
    font-size: 24px;
    color: #2563eb;
    margin-top: 5px;
    letter-spacing: 2px;
}

/* Full width button */
.btn-full {
    width: 100%;
}

/* RATING ANALYTICS */

.rating-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.rating-card .stat-icon {
    background: #f59e0b;
    color: white;
}

.rating-count {
    font-size: 0.875rem;
    color: #92400e;
    margin-top: 4px;
    font-weight: 500;
}

/* Top Rated List */
.top-rated-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.top-rated-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.top-rated-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.note-rank {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.note-info {
    flex: 1;
    min-width: 0;
}

.note-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-uploader {
    font-size: 0.875rem;
    color: #64748b;
}

.note-rating {
    text-align: center;
    flex-shrink: 0;
}

.note-rating .stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.note-rating .star {
    font-size: 1.25rem;
    color: #d1d5db;
}

.note-rating .star.active {
    color: #fbbf24;
}

.rating-text {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}