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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgb(255, 118, 51);
    color: white !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 118, 51, 0.3);
}

.btn:hover {
    background: rgb(230, 100, 40);
    box-shadow: 0 4px 12px rgba(255, 118, 51, 0.4);
    color: white !important;
}

.btn-primary {
    background: rgb(255, 118, 51);
    color: white !important;
}

.btn-primary:hover {
    background: rgb(230, 100, 40);
    color: white !important;
}

.btn-secondary {
    background: #4a4a4a;
    box-shadow: 0 2px 8px rgba(74, 74, 74, 0.3);
    color: white !important;
    padding: 0.75rem 1.5rem;
}

.btn-secondary:hover {
    background: #5a5a5a;
    color: white !important;
}

.btn-small {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
}

/* Content Links */
.content a:not(.btn),
.data-table a:not(.btn),
.worklog-card a:not(.btn) {
    color: rgb(255, 118, 51);
    text-decoration: underline;
    font-weight: bold;
}

.content a:not(.btn):hover,
.data-table a:not(.btn):hover,
.worklog-card a:not(.btn):hover {
    color: rgb(230, 100, 40);
}

/* Logo link - no styling */
.navbar a.logo-link {
    text-decoration: none;
    font-weight: normal;
    color: inherit;
    padding: 0;
    background: none;
}

.navbar a.logo-link:hover {
    color: inherit;
    text-decoration: none;
    background: none;
}

.container {
    width: 100%;
    margin: 0;
    max-width: none;
}

/* Navigation */
.navbar {
    background: #2a2a2a;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid rgb(255, 118, 51);
}

.navbar h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.navbar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}
.navbar a:hover {
    background: rgba(255, 118, 51, 0.2);
    color: white;
}

.navbar a.active {
    background: rgb(255, 118, 51);
    color: white;
}

/* Content */
.content {
    padding: 2rem;
    background: #2a2a2a;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    min-height: calc(100vh - 100px);
}

.content h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    margin-bottom: 0;
}
.subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    font-weight: 400;
}

/* Forms */
.form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #1a1a1a;
    color: #ffffff;
    min-height: 45px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(255, 118, 51);
}

.form-group textarea {
    resize: vertical;
}

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

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
}

.data-table thead {
    background: #3a3a3a;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid #3a3a3a;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #3a3a3a;
    color: #ffffff;
}

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

.description-cell {
    max-width: 300px;
    white-space: pre-line;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

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

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

.status-pending {
    background: #d1ecf1;
    color: #0c5460;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgb(255, 118, 51);
}

.stat-card h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    margin-top: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-link {
    color: rgb(255, 118, 51);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-link:hover {
    color: rgb(255, 140, 80);
}

.stat-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Dashboard */
.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-section {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
}

.dashboard-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-item {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-left: 4px solid rgb(255, 118, 51);
}

.recent-item-main {
    flex: 1;
}

.recent-item-main strong {
    display: block;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.recent-item-meta {
    display: block;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.recent-item-description {
    margin-top: 0.5rem;
    color: #d0d0d0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.recent-item-actions {
    flex-shrink: 0;
}

.view-all-link {
    display: block;
    margin-top: 1rem;
    color: rgb(255, 118, 51);
    text-decoration: none;
    font-weight: 600;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Client Details */
.client-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.detail-section {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
}

.detail-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.detail-section dl {
    display: grid;
    gap: 1rem;
}

.detail-section dt {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.detail-section dd {
    margin-left: 0;
    color: #d0d0d0;
}

.detail-section a {
    color: rgb(255, 118, 51);
    text-decoration: none;
}

.detail-section a:hover {
    text-decoration: underline;
}

.section-divider {
    height: 2px;
    background: #3a3a3a;
    margin: 2rem 0;
}

/* Work Logs */
.worklogs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.worklog-card {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid rgb(255, 118, 51);
    border: 1px solid #3a3a3a;
}

.worklog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.worklog-description {
    color: #ffffff;
    line-height: 1.6;
    margin: 1rem 0;
}

.worklog-meta {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.hours-badge {
    background: rgb(255, 118, 51);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.work-summary {
    background: #1a1a1a;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid rgb(255, 118, 51);
    border: 1px solid #3a3a3a;
    color: #ffffff;
}

/* Filter Info */
.filter-info {
    background: #2a2a2a;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid rgb(255, 118, 51);
    color: #ffffff;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #b0b0b0;
}

.empty-state a {
    color: rgb(255, 118, 51);
    text-decoration: none;
    font-weight: 600;
}

.empty-state a:hover {
    text-decoration: underline;
}

.empty-text {
    color: #b0b0b0;
    padding: 1rem;
}

.empty-text a {
    color: rgb(255, 118, 51);
    text-decoration: none;
    font-weight: 600;
}

.empty-text a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .client-details {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}
