html {
    font-family: 'Segoe UI', Calibri; 
  font-size: 11px;
}

@media (min-width: 768px) {
    html {
        font-family: 'Segoe UI', Calibri;
        font-size: 11px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f8f9fa;
}

/* Top Header */
.top-header {
    background: #606060;
    color: white;
    padding: 6px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-logo {
  height: 25px;
  margin-right: 15px;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.user-info {
  display: flex;
  align-items: center;
}

/* Main Navigation */
.main-nav {
    background-color: #070c2a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.main-nav .nav-tabs {
  border-bottom: none;
  margin-bottom: 0;
}

    .main-nav .nav-link {
        color: #e1e4e7;
        border: none;
        border-bottom: 3px solid transparent;
        font-weight: 500;
        transition: all 0.3s ease;
    }

.main-nav .nav-link:hover {
  color: yellow;
  background-color: rgba(102, 126, 234, 0.05);
  border-bottom-color: #667eea;
}

        .main-nav .nav-link.active {
            color: #b0ea66;
            background-color: rgba(102, 126, 234, 0.1);
            border-bottom-color: #667eea;
        }

.main-nav .nav-link i {
  margin-right: 0.5rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/*
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}*/

.stat-card .card-body {
  padding: 1.5rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

/* Tables */
.table-hover tbody tr:hover {
  background-color: rgba(102, 126, 234, 0.05);
  cursor: pointer;
}

.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
}

/* Status Badges */
.badge {
  padding: 0.4em 0.8em;
  font-weight: 500;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  background-color: white;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-tabs {
    display: flex;
    justify-content: space-evenly;
}

.btn-primary {
    background-color: #355078; 
}

.bg-primary {
    background-color: rgb(44 58 80) !important; 
}

.bg-danger {
    background-color: #b73c48 !important; 
}

a {
    color: rgb(18 86 187);
    text-decoration: none; 
}


/* Ticket Description Display Styles */
.ticket-description-display {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #212529;
}

    .ticket-description-display p {
        margin-bottom: 1rem;
    }

    .ticket-description-display ul,
    .ticket-description-display ol {
        margin-bottom: 1rem;
        padding-left: 2rem;
    }

    .ticket-description-display h1,
    .ticket-description-display h2,
    .ticket-description-display h3,
    .ticket-description-display h4,
    .ticket-description-display h5,
    .ticket-description-display h6 {
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .ticket-description-display h1 {
        font-size: 1.75rem;
    }

    .ticket-description-display h2 {
        font-size: 1.5rem;
    }

    .ticket-description-display h3 {
        font-size: 1.25rem;
    }

    .ticket-description-display h4 {
        font-size: 1.1rem;
    }

    .ticket-description-display h5 {
        font-size: 1rem;
    }

    .ticket-description-display h6 {
        font-size: 0.9rem;
    }

    .ticket-description-display img {
        max-width: 100%;
        height: auto;
        margin: 1rem 0;
        border-radius: 4px;
    }

    .ticket-description-display pre {
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        padding: 1rem;
        overflow-x: auto;
        margin-bottom: 1rem;
    }

    .ticket-description-display code {
        background-color: #f8f9fa;
        padding: 0.2rem 0.4rem;
        border-radius: 3px;
        font-family: 'Courier New', Courier, monospace;
        font-size: 0.9em;
    }

    .ticket-description-display blockquote {
        border-left: 4px solid #0d6efd;
        padding-left: 1rem;
        margin-left: 0;
        color: #6c757d;
        font-style: italic;
    }

    .ticket-description-display table {
        width: 100%;
        margin-bottom: 1rem;
        border-collapse: collapse;
    }

        .ticket-description-display table th,
        .ticket-description-display table td {
            padding: 0.75rem;
            border: 1px solid #dee2e6;
        }

        .ticket-description-display table th {
            background-color: #f8f9fa;
            font-weight: 600;
        }

    .ticket-description-display a {
        color: #0d6efd;
        text-decoration: none;
    }

        .ticket-description-display a:hover {
            text-decoration: underline;
        }


.comment-text {
    line-height: 1.6;
    color: #333;
}

    /* Strip Word formatting */
    .comment-text .MsoNormal {
        margin: 0 !important;
        padding: 0 !important;
    }

    .comment-text .WordSection1 {
        all: unset;
    }

    .comment-text span[style] {
        font-family: inherit !important;
        font-size: inherit !important;
    }

    /* Make sure paragraphs have normal spacing */
    .comment-text p {
        margin: 0 0 0.5em 0;
        font-family: Arial, sans-serif;
        font-size: 14px;
        color: #333;
    }

        .comment-text p:last-child {
            margin-bottom: 0;
        }


.comment-attachments {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.comment-attachments .attachment-item {
    transition: all 0.2s ease;
}

    .comment-attachments .attachment-item:hover {
        background-color: #f8f9fa !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

.attachment-name {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

