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

/* Metronic theme CSS variables override the defaults */
:root {
    --primary-color: #009ef7;
    --primary-dark: #0095e8;
    --secondary-color: #7239ea;
    --success-color: #50cd89;
    --danger-color: #f1416c;
    --warning-color: #ffc700;
    --bg-color: #f5f8fa;
    --card-bg: #ffffff;
    --text-color: #3f4254;
    --text-light: #7e8299;
    --border-color: #ebedf3;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login container styles moved to metronic-theme.css */

.login-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

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

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 12px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 158, 247, 0.25);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0.5rem 1rem rgba(0, 158, 247, 0.35);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
}

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

.btn-secondary:hover {
    background-color: #475569;
}

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

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

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

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.message.show {
    display: block;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #2563eb;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-box h1 {
        font-size: 24px;
    }
}


/* Password toggle styles */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 40px;
    /* Space for the toggle button */
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: var(--text-light);
    transition: color 0.2s;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle:focus {
    outline: none;
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    line-height: 1.6;
    color: var(--text-color);
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* Star Rating */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    font-size: 1.5rem;
    justify-content: center;
    padding: 10px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ccc;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #ffca28;
}

/* Announcement System */
/* Announcement System */
.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.announcement-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #edf2f7;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.announcement-image-wrapper {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: #f7fafc;
    border-bottom: 1px solid #edf2f7;
}

.announcement-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.announcement-card:hover .announcement-image {
    transform: scale(1.05);
}

.announcement-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #a0aec0;
    margin-bottom: 12px;
}

.announcement-expiry {
    display: flex;
    align-items: center;
    color: #e53e3e;
    font-weight: 500;
}

.announcement-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
}

.announcement-text {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    flex-grow: 1;
}

.announcement-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.status-active {
    background-color: rgba(46, 204, 113, 0.9);
    color: white;
    backdrop-filter: blur(4px);
}

.status-future {
    background-color: rgba(243, 156, 18, 0.9);
    color: white;
    backdrop-filter: blur(4px);
}

.status-expired {
    background-color: rgba(149, 165, 166, 0.9);
    color: white;
    backdrop-filter: blur(4px);
}

.announcement-actions {
    padding: 12px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-light-primary {
    background-color: #ebf5ff;
    color: #3b82f6;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-light-primary:hover {
    background-color: #dbeafe;
    color: #2563eb;
}

.btn-light-danger {
    background-color: #fef2f2;
    color: #ef4444;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-light-danger:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #6c757d;
    font-size: 1.1rem;
    border: 2px dashed #dee2e6;
}



.form-group.row {
    display: flex;
    margin-left: -10px;
    margin-right: -10px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}

/* Task Assignment Row Styles */
.assigned-row {
    background-color: #d1fae5 !important;
    /* Greenish */
}

.unassigned-row {
    background-color: #f3f4f6 !important;
    /* Grayish */
}

.assigned-row:hover {
    background-color: #a7f3d0 !important;
}

.unassigned-row:hover {
    background-color: #e5e7eb !important;
}

/* Announcement Detail Modal Styles */
.status-badge-lg {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge-lg.status-active {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-badge-lg.status-expired {
    background-color: rgba(149, 165, 166, 0.15);
    color: #7f8c8d;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.status-badge-lg.status-future {
    background-color: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

/* Inner Card Footer Styles */
.card-footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #eee);
    width: 100%;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6c757d;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer-contact-item svg {
    color: var(--primary-color);
}