/* admin-styles.css */
:root {
    --primary: #6C63FF;
    --primary-light: #8A84FF;
    --secondary: #FF6584;
    --dark: #2A2D43;
    --light: #F7F9FC;
    --gray: #8C8EA6;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #6C63FF 0%, #8A84FF 100%);
    padding: 20px;
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.login-header p {
    color: var(--gray);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--secondary);
    color: var(--white);
}

.btn-danger:hover {
    background: #ff7b95;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.password-hint {
    margin-top: 20px;
    padding: 15px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 8px;
    text-align: left;
}

.password-hint i {
    color: var(--primary);
    margin-right: 8px;
}

.password-hint strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.password-hint small {
    color: var(--gray);
    font-size: 0.8rem;
}

/* Admin Panel Styles */
.admin-container {
    display: none;
}

.admin-header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--dark);
}

.logo p {
    color: var(--gray);
    font-size: 0.9rem;
}

.admin-main {
    padding: 30px 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Stats Section */
.stats-section {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.stat-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Form Section */
.form-section {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header p {
    color: var(--gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.char-count {
    text-align: right;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--gray);
}

.char-limit-ok {
    color: var(--gray);
}

.char-limit-warning {
    color: var(--secondary);
}

.file-hint {
    margin-top: 5px;
    color: var(--gray);
    font-size: 0.8rem;
}

.media-preview {
    margin-top: 15px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.media-placeholder {
    color: var(--gray);
}

.media-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.media-preview-content img,
.media-preview-content video {
    max-width: 100%;
    border-radius: 8px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Quotes Section */
.quotes-section {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.search-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-controls select {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.quotes-list {
    display: grid;
    gap: 20px;
}

.quote-item {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.quote-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.quote-type-badge.text {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.quote-type-badge.image {
    background: rgba(255, 101, 132, 0.1);
    color: var(--secondary);
}

.quote-type-badge.video {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--dark);
}

.quote-media {
    margin-bottom: 15px;
}

.quote-media img,
.quote-media video {
    max-width: 100%;
    border-radius: 8px;
}

.media-caption {
    font-style: italic;
    color: var(--gray);
    margin-top: 8px;
    font-size: 0.9rem;
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.quote-author {
    font-weight: 600;
    color: var(--primary);
}

.quote-category {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 10px;
    font-size: 0.8rem;
}

.quote-date {
    color: var(--gray);
}

.quote-actions {
    display: flex;
    gap: 10px;
}

/* Loading and Empty States */
.loading-state,
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.loading-state i,
.empty-state i {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    border-left: 4px solid var(--primary);
    animation: slideInRight 0.3s ease;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: var(--secondary);
}

.notification.info {
    border-left-color: #3b82f6;
}

.notification button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-controls {
        justify-content: space-between;
    }
    
    .quote-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quote-actions {
        flex-wrap: wrap;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
}