/* Main CSS Variables */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fc;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Dashboard Cards */
.stats-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    background-color: white;
    position: relative;
    overflow: hidden;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stats-card .stats-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 3rem;
    opacity: 0.2;
    color: var(--primary-color);
}

.stats-card .stats-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stats-card .stats-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-card .stats-desc {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.stats-card.primary {
    border-left: 4px solid var(--primary-color);
}

.stats-card.success {
    border-left: 4px solid var(--success-color);
}

.stats-card.info {
    border-left: 4px solid var(--info-color);
}

.stats-card.warning {
    border-left: 4px solid var(--warning-color);
}

/* Forms */
.form-control {
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid #e3e6f0;
    font-size: 0.9rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
    border-color: #bac8f3;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
    border-radius: 5px;
}

.custom-checkbox:hover {
    background-color: #f8f9fc;
}

.custom-checkbox input {
    margin-right: 10px;
}

/* Custom Badges */
.badge.badge-status-unassigned {
    background-color: #f0f0f0;
    color: #858796;
}

.badge.badge-status-assigned {
    background-color: #36b9cc;
    color: white;
}

.badge.badge-status-submit {
    background-color: #f6c23e;
    color: white;
}

.badge.badge-status-completed {
    background-color: #1cc88a;
    color: white;
}

.badge.badge-status-needs_revision {
    background-color: #e74a3b;
    color: white;
}

.badge.badge-status-revised {
    background-color: #4e73df;
    color: white;
}

.badge.badge-status-rejected {
    background-color: #5a5c69;
    color: white;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 20px;
}

.filter-group .btn-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.filter-group .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Actions Group */
.actions-group {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .actions-group {
        width: 100%;
        justify-content: space-between;
    }
}

/* Table Improvements */
.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

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

/* Status colors */
.text-unassigned { color: #858796; }
.text-assigned { color: #36b9cc; }
.text-submit { color: #f6c23e; }
.text-completed { color: #1cc88a; }
.text-needs_revision { color: #e74a3b; }
.text-revised { color: #4e73df; }
.text-rejected { color: #5a5c69; }

/* Card dashboard */
.card-dashboard {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-dashboard .card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: rgba(78, 115, 223, 0.2);
}

/* Login animation */
.login-card {
    animation: scaleIn 0.5s ease-in-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--secondary-color);
}

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

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    max-width: 500px;
    margin: 0 auto 20px;
}

/* Keywords Table Styles */
.keywords-table {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 20px;
}

.keywords-table .table {
    margin-bottom: 0;
}

.keywords-table thead th {
    background-color: #f8f9fc;
    border-bottom: 2px solid #e3e6f0;
    color: #4e73df;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 15px;
    white-space: nowrap;
}

.keywords-table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #e3e6f0;
    color: #5a5c69;
    font-size: 0.95rem;
}

.keywords-table tbody tr:hover {
    background-color: #f8f9fc;
    transition: background-color 0.2s ease;
}

.keywords-table .keyword-text {
    font-weight: 500;
    color: #4e73df;
    display: flex;
    align-items: center;
    gap: 10px;
}

.keywords-table .keyword-writer {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.keywords-table .keyword-project {
    color: #858796;
    font-size: 0.9rem;
}

.keywords-table .keyword-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.keywords-table .keyword-status i {
    font-size: 0.8rem;
}

.keywords-table .keyword-status.unassigned {
    background-color: #858796;
    color: white;
}

.keywords-table .keyword-status.assigned {
    background-color: #36b9cc;
    color: white;
}

.keywords-table .keyword-status.submit {
    background-color: #f6c23e;
    color: white;
}

.keywords-table .keyword-status.completed {
    background-color: #1cc88a;
    color: white;
}

.keywords-table .keyword-status.needs_revision {
    background-color: #e74a3b;
    color: white;
}

.keywords-table .keyword-status.rejected {
    background-color: #5a5c69;
    color: white;
}

.keywords-table .keyword-status.revised {
    background-color: #4e73df;
    color: white;
}

.keywords-table .table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.keywords-table .btn-action {
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.keywords-table .btn-action:hover {
    transform: translateY(-1px);
}

.keywords-table .btn-edit {
    background-color: #4e73df;
    color: white;
}

.keywords-table .btn-delete {
    background-color: #e74a3b;
    color: white;
}

.keywords-table .btn-view {
    background-color: #36b9cc;
    color: white;
}

/* Keywords Filter Section */
.keywords-filter {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.keywords-filter .filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.keywords-filter .form-select,
.keywords-filter .form-control {
    min-width: 200px;
    border-radius: 5px;
    border: 1px solid #e3e6f0;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.keywords-filter .btn-filter {
    background-color: #4e73df;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.keywords-filter .btn-filter:hover {
    background-color: #2e59d9;
    transform: translateY(-1px);
}

.keywords-filter .btn-reset {
    background-color: #858796;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.keywords-filter .btn-reset:hover {
    background-color: #6b6d7d;
    transform: translateY(-1px);
}

/* Status Filter Buttons */
.status-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-filter .btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-filter .btn i {
    font-size: 0.8rem;
}

.status-filter .btn.active {
    transform: translateY(-1px);
}

/* Quick Review Button */
.quick-review-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #f6c23e;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    z-index: 1000;
}

.quick-review-btn:hover {
    background-color: #f4b619;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.quick-review-btn .badge {
    background-color: white;
    color: #f6c23e;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Keywords Stats */
.keywords-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.keywords-stats .stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.keywords-stats .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.keywords-stats .stat-icon.total {
    background-color: #4e73df;
}

.keywords-stats .stat-icon.pending {
    background-color: #f6c23e;
}

.keywords-stats .stat-icon.approved {
    background-color: #1cc88a;
}

.keywords-stats .stat-icon.rejected {
    background-color: #e74a3b;
}

.keywords-stats .stat-info {
    flex: 1;
}

.keywords-stats .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #5a5c69;
    margin-bottom: 5px;
}

.keywords-stats .stat-label {
    font-size: 0.9rem;
    color: #858796;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .keywords-filter .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .keywords-filter .form-select,
    .keywords-filter .form-control {
        width: 100%;
    }
    
    .keywords-stats {
        grid-template-columns: 1fr;
    }
    
    .keywords-table .table-actions {
        flex-direction: column;
    }
    
    .keywords-table .btn-action {
        width: 100%;
    }
    
    .status-filter {
        justify-content: center;
    }
    
    .quick-review-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
    }
}
