/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --sidebar-width: 250px;
    --header-height: 120px;
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    height: var(--header-height);
    background-color: white;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.header-left .logo img {
    width: 200px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 1rem;
    border-right: 1px solid #ddd;
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-option img {
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

.lang-option.active {
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-option:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 250px;
}

.search-bar i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.notifications {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.user-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.user-link:hover {
    color: var(--primary-color);
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.user-role {
    font-size: 0.85rem;
    color: #666;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.logout-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.logout-button i {
    font-size: 1rem;
}

.logout-button:hover {
    background-color: #dc3545;
    color: white;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    height: 100vh;
    position: fixed;
    top: var(--header-height);
    left: 0;
    box-shadow: var(--card-shadow);
    z-index: 100;
    transition: width 0.3s ease;
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav a:hover,
.sidebar-nav li.active a {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
}

.sidebar-nav i {
    font-size: 1.2rem;
    min-width: 24px;
    margin-right: 1rem;
}

.sidebar-nav span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    background-color: var(--background-color);
    transition: margin-left 0.3s ease;
    width: calc(100% - var(--sidebar-width));
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
}

.main-content > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Content Container for better overflow control */
.content-container {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

/* Grid and Card adjustments */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-content h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.card-content .number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.recent-activities {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.recent-activities h2 {
    margin-bottom: 1rem;
}

/* Footer Styles */
.main-footer {
    background-color: #ffffff;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    position: relative;
    transition: width 0.3s ease, margin-left 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.main-footer .footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
    box-sizing: border-box;
    line-height: 1.6;
}

/* Update Form Styles */
.update-form {
    max-width: 100%;
    margin-top: 1rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Responsive adjustments for the update form */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    .sidebar-nav a {
        padding: 0.75rem 1rem;
    }
    
    .sidebar-nav i {
        margin-right: 0.75rem;
    }
    
    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
        padding: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-nav span {
        display: none;
    }
    
    .sidebar-nav a {
        padding: 0.75rem;
        justify-content: center;
    }
    
    .sidebar-nav i {
        margin-right: 0;
        font-size: 1.4rem;
    }
    
    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .search-bar input {
        width: 180px;
    }
    
    .user-info {
        display: none;
    }
}

/* Post Page Styles */
.post-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.post-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.post-meta-item i {
    color: var(--primary-color);
}

.post-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.post-section {
    margin-bottom: 2rem;
}

.post-section:last-child {
    margin-bottom: 0;
}

.post-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.post-section-content {
    color: var(--text-color);
    line-height: 1.6;
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-button.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.action-button.primary:hover {
    background-color: #3a7bc8;
}

.action-button.secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.action-button.secondary:hover {
    background-color: #5a6268;
}

.action-button.danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.action-button.danger:hover {
    background-color: #c82333;
}

.status-badge, .type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-in-progress {
    background-color: #cce5ff;
    color: #004085;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.type-reels {
    background-color: #e2e3e5;
    color: #383d41;
}

.type-normal {
    background-color: #d1ecf1;
    color: #0c5460;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6c757d;
}

.client-details h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.client-details p {
    margin: 0.25rem 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.post-description {
    white-space: pre-line;
}

.post-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.attachment-item:hover {
    background-color: #e9ecef;
}

.attachment-item i {
    color: #6c757d;
}

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

.attachment-item a:hover {
    text-decoration: underline;
}

.post-status-update {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.post-status-update h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.post-status-update p {
    margin: 0 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.post-status-update .status-select {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-option {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-option:hover {
    opacity: 0.8;
}

.status-option.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-color);
}

.status-option.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-option.in-progress {
    background-color: #cce5ff;
    color: #004085;
}

.status-option.completed {
    background-color: #d4edda;
    color: #155724;
}

.status-option.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.post-status-update button {
    margin-top: 1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post-status-update button:hover {
    background-color: #218838;
}

/* Responsive styles for post page */
@media (max-width: 768px) {
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .post-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
        justify-content: center;
    }
    
    .status-select {
        flex-direction: column;
    }
    
    .status-option {
        width: 100%;
        text-align: center;
    }
}

/* Attachment Modal */
.attachment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
}

.close-modal {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.close-modal:hover {
    color: var(--secondary-color);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.pagination-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .main-footer {
        width: calc(100% - 200px);
        margin-left: 200px;
        padding: 1.75rem 0;
    }
    
    .main-footer .footer-content {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .main-footer {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 1.5rem 0;
    }
    
    .main-footer .footer-content {
        padding: 0 1.5rem;
        font-size: 0.9rem;
    }
} 