/* IT Portal - Professional Stylesheet */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    background-color: #fff;
    color: #000;
}

/* Header */
.header {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder {
    flex: 0 0 auto;
}

.logo-box {
    padding: 0px 0px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-info {
    font-size: 12px;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

h2 {
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: bold;
}

h3 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border: 1px solid #000;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn:hover {
    background-color: #333;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

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

.btn-success {
    background-color: #2d7a2d;
    border-color: #2d7a2d;
}

.btn-success:hover {
    background-color: #1f5a1f;
}

.btn-small {
    padding: 5px 12px;
    font-size: 11px;
}

/* Cards */
.card {
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.card-header {
    background-color: #f5f5f5;
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 16px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th,
.data-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.data-table tr:hover {
    background-color: #fafafa;
}

.info-table {
    width: 100%;
    font-size: 12px;
}

.info-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
}

.info-table td:first-child {
    width: 40%;
    color: #666;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 12px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Status Badges */
.status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 2px;
}

.status-open {
    background-color: #e3f2fd;
    color: #1565c0;
}

.status-in_progress {
    background-color: #fff3e0;
    color: #e65100;
}

.status-scheduled {
    background-color: #f3e5f5;
    color: #6a1b9a;
}

.status-paused {
    background-color: #fff9c4;
    color: #f57f17;
}

.status-resolved {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-cancelled {
    background-color: #ffebee;
    color: #c62828;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 2px;
    text-transform: uppercase;
}

.badge-low {
    background-color: #e0e0e0;
    color: #424242;
}

.badge-medium {
    background-color: #fff3e0;
    color: #e65100;
}

.badge-high {
    background-color: #ffe0b2;
    color: #ef6c00;
}

.badge-critical {
    background-color: #ffcdd2;
    color: #c62828;
}

.badge-admin {
    background-color: #000;
    color: #fff;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-error {
    background-color: #ffebee;
    border-color: #c62828;
    color: #c62828;
}

.alert-success {
    background-color: #e8f5e9;
    border-color: #2e7d32;
    color: #2e7d32;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.login-box {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #ddd;
    max-width: 400px;
    width: 100%;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
}

.login-box .logo-placeholder {
    text-align: center;
    margin-bottom: 30px;
}

.login-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 11px;
    text-align: center;
    color: #666;
}

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

.stat-card {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
}

.tab-btn {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: -2px;
}

.tab-btn.active {
    background-color: #fff;
    border-bottom: 2px solid #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #000;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #ddd;
}

.timeline-marker.admin {
    background-color: #2e7d32;
}

.timeline-marker.user {
    background-color: #1565c0;
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 12px;
    border: 1px solid #ddd;
}

.timeline-header {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-time {
    font-size: 11px;
    color: #666;
    margin-left: auto;
}

.timeline-body p {
    margin: 0;
}

.new-update {
    animation: highlight 2s;
}

@keyframes highlight {
    0% { background-color: #ffffcc; }
    100% { background-color: transparent; }
}

/* Updates/Announcements */
.update-item {
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid #ddd;
    background-color: #fafafa;
}

.update-item.priority-important {
    border-left-color: #ff9800;
    background-color: #fff3e0;
}

.update-item.priority-urgent {
    border-left-color: #f44336;
    background-color: #ffebee;
}

.update-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.update-time {
    font-size: 11px;
    color: #666;
}

.update-content {
    font-size: 12px;
}

/* Notifications */
.notification {
    background-color: #fffde7;
    border: 1px solid #fbc02d;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ticket Header */
.ticket-header {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ticket-summary {
    background-color: #f5f5f5;
    padding: 16px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    font-size: 12px;
}

.ticket-description {
    padding: 12px;
    background-color: #fafafa;
    border: 1px solid #eee;
}

/* Info Box */
.info-box {
    background-color: #f5f5f5;
    padding: 16px;
    margin-top: 20px;
    border: 1px solid #ddd;
}

.info-box h3 {
    margin-bottom: 12px;
}

.info-box ul {
    list-style-position: inside;
    font-size: 12px;
}

.info-box li {
    margin-bottom: 6px;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 12px;
}

.filter-controls select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    font-size: 11px;
}

/* No Data Message */
.no-data {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 12px;
    }
    
    .tabs {
        overflow-x: auto;
    }
    
    .ticket-summary {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header, .btn, .form-actions, .filter-controls, .tabs {
        display: none;
    }
}
