/* Custom CSS for SecureSphereLabs Ticketing System */

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #0c2461 0%, #1e3799 100%);
}

.login-box {
    width: 360px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #0c2461;
    margin-bottom: 5px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-group input {
    padding-left: 35px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    width: 100%;
    padding: 10px 10px 10px 35px;
}

.btn-block {
    width: 100%;
}

/* Alert Styling */
.alert {
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Ticket View Styling */
.description-box {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    white-space: pre-line;
}

/* Timeline for Comments */
.timeline {
    position: relative;
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ddd;
    left: 31px;
    margin: 0;
    border-radius: 2px;
}

.timeline > div {
    position: relative;
    margin-right: 10px;
    margin-bottom: 15px;
}

.timeline > .time-label > span {
    font-weight: 600;
    padding: 5px 10px;
    display: inline-block;
    background-color: #fff;
    border-radius: 4px;
}

.timeline > div > .fa,
.timeline > div > .fas,
.timeline > div > .far {
    width: 30px;
    height: 30px;
    font-size: 15px;
    line-height: 30px;
    position: absolute;
    color: #fff;
    background: #d2d6de;
    border-radius: 50%;
    text-align: center;
    left: 18px;
    top: 0;
}

.timeline > div > .timeline-item {
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin-top: 0;
    background: #fff;
    color: #444;
    margin-left: 60px;
    margin-right: 15px;
    padding: 0;
    position: relative;
}

.timeline > div > .timeline-item > .time {
    color: #999;
    float: right;
    padding: 10px;
    font-size: 12px;
}

.timeline > div > .timeline-item > .timeline-header {
    margin: 0;
    color: #555;
    border-bottom: 1px solid #f4f4f4;
    padding: 10px;
    font-size: 14px;
    line-height: 1.1;
}

.timeline > div > .timeline-item > .timeline-body {
    padding: 10px;
    white-space: pre-line;
}

/* SLA Tracking Styles */
.progress-group {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.progress-group .progress {
    flex: 1;
    margin-right: 10px;
}

/* Custom Badge Colors */
.badge-warning {
    background-color: #f39c12;
    color: #fff;
}

.badge-info {
    background-color: #3c8dbc;
    color: #fff;
}

.badge-success {
    background-color: #00a65a;
    color: #fff;
}

.badge-danger {
    background-color: #dc3545;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .card-body {
        padding: 0.75rem;
    }
    
    .login-box {
        width: 100%;
        max-width: 360px;
        margin: 0 15px;
    }
    
    .timeline > div > .timeline-item {
        margin-right: 0;
        margin-left: 45px;
    }
    
    .timeline > div > .timeline-item > .time {
        display: block;
        float: none;
        padding: 3px 10px;
        border-bottom: 1px solid #f4f4f4;
    }
}

/* Custom table colors for ticket statuses */
.table-status-open {
    background-color: rgba(243, 156, 18, 0.1);
}

.table-status-in-progress {
    background-color: rgba(60, 141, 188, 0.1);
}

.table-status-closed {
    background-color: rgba(52, 58, 64, 0.1);
}

.table-priority-critical {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Dashboard widgets */
.info-box {
    min-height: 100px;
}

.info-box-content {
    padding: 5px 10px;
}

.small-box {
    transition: all 0.3s ease;
}

.small-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sidebar branding and colors */
.brand-link {
    padding: 0.8rem 0.5rem;
    text-align: center;
}

.sidebar-dark-primary {
    background-color: #0c2461;
}

.navbar-primary {
    background-color: #1e3799;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* SLA indicator icons */
.sla-met {
    color: #00a65a;
}

.sla-warning {
    color: #f39
/* Custom CSS for SecureSphereLabs Ticketing System */

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #0c2461 0%, #1e3799 100%);
}

.login-box {
    width: 360px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #0c2461;
    margin-bottom: 5px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-group input {
    padding-left: 35px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    width: 100%;
    padding: 10px 10px 10px 35px;
}

.btn-block {
    width: 100%;
}

/* Alert Styling */
.alert {
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Ticket View Styling */
.description-box {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    white-space: pre-line;
}

/* Timeline for Comments */
.timeline {
    position: relative;
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ddd;
    left: 31px;
    margin: 0;
    border-radius: 2px;
}

.timeline > div {
    position: relative;
    margin-right: 10px;
    margin-bottom: 15px;
}

.timeline > .time-label > span {
    font-weight: 600;
    padding: 5px 10px;
    display: inline-block;
    background-color: #fff;
    border-radius: 4px;
}

.timeline > div > .fa,
.timeline > div > .fas,
.timeline > div > .far {
    width: 30px;
    height: 30px;
    font-size: 15px;
    line-height: 30px;
    position: absolute;
    color: #fff;
    background: #d2d6de;
    border-radius: 50%;
    text-align: center;
    left: 18px;
    top: 0;
}

.timeline > div > .timeline-item {
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin-top: 0;
    background: #fff;
    color: #444;
    margin-left: 60px;
    margin-right: 15px;
    padding: 0;
    position: relative;
}

.timeline > div > .timeline-item > .time {
    color: #999;
    float: right;
    padding: 10px;
    font-size: 12px;
}

.timeline > div > .timeline-item > .timeline-header {
    margin: 0;
    color: #555;
    border-bottom: 1px solid #f4f4f4;
    padding: 10px;
    font-size: 14px;
    line-height: 1.1;
}

.timeline > div > .timeline-item > .timeline-body {
    padding: 10px;
    white-space: pre-line;
}

/* SLA Tracking Styles */
.progress-group {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.progress-group .progress {
    flex: 1;
    margin-right: 10px;
}

/* Custom Badge Colors */
.badge-warning {
    background-color: #f39c12;
    color: #fff;
}

.badge-info {
    background-color: #3c8dbc;
    color: #fff;
}

.badge-success {
    background-color: #00a65a;
    color: #fff;
}

.badge-danger {
    background-color: #dc3545;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .card-body {
        padding: 0.75rem;
    }
    
    .login-box {
        width: 100%;
        max-width: 360px;
        margin: 0 15px;
    }
    
    .timeline > div > .timeline-item {
        margin-right: 0;
        margin-left: 45px;
    }
    
    .timeline > div > .timeline-item > .time {
        display: block;
        float: none;
        padding: 3px 10px;
        border-bottom: 1px solid #f4f4f4;
    }
}

/* Custom table colors for ticket statuses */
.table-status-open {
    background-color: rgba(243, 156, 18, 0.1);
}

.table-status-in-progress {
    background-color: rgba(60, 141, 188, 0.1);
}

.table-status-closed {
    background-color: rgba(52, 58, 64, 0.1);
}

.table-priority-critical {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Dashboard widgets */
.info-box {
    min-height: 100px;
}

.info-box-content {
    padding: 5px 10px;
}

.small-box {
    transition: all 0.3s ease;
}

.small-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sidebar branding and colors */
.brand-link {
    padding: 0.8rem 0.5rem;
    text-align: center;
}

.sidebar-dark-primary {
    background-color: #0c2461;
}

.navbar-primary {
    background-color: #1e3799;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* SLA indicator icons */
.sla-met {
    color: #00a65a;
}

.sla-warning {
    color: #f39c12;
}

.sla-breached {
    color: #dc3545;
}

/* Form Customizations */
.custom-file-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-control:focus {
    border-color: #3c8dbc;
    box-shadow: 0 0 0 0.2rem rgba(60, 141, 188, 0.25);
}

/* Card styling */
.card {
    margin-bottom: 20px;
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    border: 0;
}

.card-header {
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
}

/* Admin section styling */
.admin-content {
    margin-top: 20px;
}

.user-panel {
    margin-top: 10px;
}

/* Dashboard customizations */
.dashboard-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0c2461;
}

/* Report page styling */
.report-period {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Print styles */
@media print {
    .sidebar, .navbar, .card-tools, footer, .form-inline {
        display: none !important;
    }
    
    .content-wrapper {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .no-print {
        display: none !important;
    }
}

/* Profile page styling */
.profile-user-img {
    border: 3px solid #adb5bd;
    margin: 0 auto;
    padding: 3px;
    width: 100px;
}

.profile-username {
    font-size: 21px;
    margin-top: 5px;
}

.profile-user-role {
    color: #6c757d;
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .card-title {
        font-size: 1rem;
    }
    
    .small-box h3 {
        font-size: 1.5rem;
    }
    
    .login-box {
        padding: 15px;
    }
}    