/* Estilos adicionais do sistema */

/* User Menu */
.user-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.user-menu-link {
    display: block;
    padding: 10px;
    background: rgba(15, 27, 53, 0.8);
    border: 1px solid #2a5a8e;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    text-align: center;
}

.user-menu-link:hover {
    background: rgba(42, 90, 142, 0.9);
    box-shadow: 0 0 10px rgba(90, 159, 212, 0.5);
}

/* Flash Messages */
.flash-messages {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 50px;
}

.flash-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

.flash-success {
    background: rgba(76, 175, 80, 0.9);
    border: 1px solid #4caf50;
    color: #fff;
}

.flash-error {
    background: rgba(244, 67, 54, 0.9);
    border: 1px solid #f44336;
    color: #fff;
}

.flash-info {
    background: rgba(33, 150, 243, 0.9);
    border: 1px solid #2196f3;
    color: #fff;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Forms */
.form-container {
    background: linear-gradient(135deg, rgba(26, 58, 110, 0.8), rgba(42, 90, 142, 0.8));
    border: 2px solid #2a5a8e;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #5a9fd4;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px;
    background: rgba(15, 27, 53, 0.8);
    border: 1px solid #2a5a8e;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #5a9fd4;
    box-shadow: 0 0 10px rgba(90, 159, 212, 0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #2a5a8e, #1a3a6e);
    border: 1px solid #5a9fd4;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: linear-gradient(135deg, #3a6a9e, #2a4a7e);
    box-shadow: 0 0 15px rgba(90, 159, 212, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    border-color: #ef5350;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
}

.btn-success {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    border-color: #66bb6a;
}

.btn-success:hover {
    background: linear-gradient(135deg, #43a047, #388e3c);
}

/* Tables */
.table-container {
    background: linear-gradient(135deg, rgba(26, 58, 110, 0.8), rgba(42, 90, 142, 0.8));
    border: 2px solid #2a5a8e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2a5a8e;
}

table th {
    background: rgba(15, 27, 53, 0.8);
    color: #5a9fd4;
    font-weight: bold;
}

table tr:hover {
    background: rgba(42, 90, 142, 0.3);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-open {
    background: #4caf50;
    color: #fff;
}

.badge-answered {
    background: #2196f3;
    color: #fff;
}

.badge-closed {
    background: #757575;
    color: #fff;
}

.badge-high {
    background: #f44336;
    color: #fff;
}

.badge-medium {
    background: #ff9800;
    color: #fff;
}

.badge-low {
    background: #9e9e9e;
    color: #fff;
}

.badge-pending {
    background: #ff9800;
    color: #fff;
}

.badge-approved {
    background: #4caf50;
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background: rgba(26, 58, 110, 0.8);
    border: 1px solid #2a5a8e;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background: rgba(42, 90, 142, 0.9);
    box-shadow: 0 0 10px rgba(90, 159, 212, 0.5);
}

.pagination .active {
    background: #5a9fd4;
    border-color: #5a9fd4;
}

/* Comments */
.comment {
    background: rgba(15, 27, 53, 0.6);
    border: 1px solid #2a5a8e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a5a8e;
}

.comment-author {
    color: #5a9fd4;
    font-weight: bold;
}

.comment-date {
    color: #7a9fc4;
    font-size: 12px;
}

.comment-body {
    color: #ccc;
    line-height: 1.6;
}

/* Tickets */
.ticket-message {
    background: rgba(15, 27, 53, 0.6);
    border: 1px solid #2a5a8e;
    border-left: 4px solid #5a9fd4;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.ticket-message.admin-reply {
    border-left-color: #ffd700;
    background: rgba(42, 90, 142, 0.4);
}

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

.ticket-author {
    color: #5a9fd4;
    font-weight: bold;
}

.ticket-author.admin {
    color: #ffd700;
}

.ticket-date {
    color: #7a9fc4;
    font-size: 12px;
}

.ticket-body {
    color: #ccc;
    line-height: 1.6;
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(26, 58, 110, 0.8), rgba(42, 90, 142, 0.8));
    border: 2px solid #2a5a8e;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.stat-value {
    font-size: 36px;
    color: #5a9fd4;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #ccc;
}



/* Ticket Messages */
.ticket-message {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.user-message {
    background: rgba(26, 58, 110, 0.6);
    border-left-color: #5a9fd4;
}

.admin-message {
    background: rgba(255, 152, 0, 0.2);
    border-left-color: #ff9800;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-author {
    font-weight: bold;
    color: #5a9fd4;
    font-size: 14px;
}

.message-date {
    font-size: 12px;
    color: #7a9fc4;
}

.message-body {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

/* Comments */
.comment {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(26, 58, 110, 0.4);
    border: 1px solid #2a5a8e;
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: #5a9fd4;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #7a9fc4;
}

.comment-body {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

/* Badge Styles */
.badge-open {
    background: #4caf50;
}

.badge-answered {
    background: #2196f3;
}

.badge-closed {
    background: #757575;
}

.badge-pending {
    background: #ff9800;
}

.badge-approved {
    background: #4caf50;
}

