/* Frontend styles for VCE Bugtracker - Premium Dark Grey / Glassmorphism theme */

.vce-bugtracker-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #d4d4d4;
    background-color: #171717;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #2d2d2d;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* Background blur decorations in grey tone */
.vce-bugtracker-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.015) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.vce-bugtracker-wrapper > * {
    position: relative;
    z-index: 1;
}

.vce-bugtracker-wrapper h5 {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.vce-bugtracker-wrapper h3 {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 16px;
}

/* Modern clean tables in dark grey */
.vce-front-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2d2d2d;
}

.vce-front-table th, 
.vce-front-table td {
    padding: 16px 20px;
    text-align: left;
}

.vce-front-table th {
    background-color: #262626;
    font-weight: 600;
    color: #a3a3a3;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #2d2d2d;
}

.vce-front-table td {
    background-color: #1a1a1a;
    border-bottom: 1px solid #2d2d2d;
    color: #d4d4d4;
    font-size: 14px;
}

.vce-front-table tbody tr:last-child td {
    border-bottom: none;
}

.vce-front-table tbody tr {
    transition: all 0.2s ease;
}

.vce-front-table tbody tr:hover td {
    background-color: #262626;
    color: #ffffff;
}

.vce-front-table a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.15s ease;
}

.vce-front-table a:hover {
    opacity: 0.8;
}

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

.vce-bugtracker-wrapper input[type="text"],
.vce-bugtracker-wrapper input[type="email"],
.vce-bugtracker-wrapper input[type="url"],
.vce-bugtracker-wrapper select,
.vce-bugtracker-wrapper textarea {
    background-color: #262626 !important;
    color: #ffffff !important;
    border: 1px solid #404040 !important;
    border-radius: 6px !important;
    padding: 14px 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease-in-out !important;
    font-size: 14px !important;
}

.vce-bugtracker-wrapper input[type="text"]:focus,
.vce-bugtracker-wrapper input[type="email"]:focus,
.vce-bugtracker-wrapper input[type="url"]:focus,
.vce-bugtracker-wrapper select:focus,
.vce-bugtracker-wrapper textarea:focus {
    border-color: #a3a3a3 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05) !important;
    background-color: #262626 !important;
}

.vce-bugtracker-wrapper input[readonly] {
    background-color: #1a1a1a !important;
    color: #737373 !important;
    cursor: not-allowed;
    border-color: #2d2d2d !important;
}

.vce-bugtracker-wrapper select {
    height: 50px !important;
    cursor: pointer;
}

/* Custom edgtf button classes */
.edgtf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    border-radius: 4px;
    background: transparent;
    text-decoration: none;
}

.edgtf-btn-large {
    padding: 16px 38px;
    font-size: 12px;
}

.edgtf-btn-outline {
    border: 2px solid #a3a3a3;
    color: #ffffff;
}

.edgtf-btn-outline:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #171717;
}

.edgtf-btn-glow {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

.edgtf-btn-glow:hover {
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

/* Custom File Uploader */
.vce-file-upload-box {
    border: 2px dashed #404040;
    background-color: rgba(38, 38, 38, 0.3);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.vce-file-upload-box:hover {
    border-color: #a3a3a3;
    background-color: rgba(38, 38, 38, 0.6);
}

.vce-file-upload-box input[type="file"] {
    display: none;
}

.vce-file-upload-icon {
    font-size: 32px;
    color: #737373;
    margin-bottom: 8px;
}

.vce-file-upload-text {
    color: #a3a3a3;
    font-size: 13px;
}

.vce-file-list {
    margin-top: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vce-file-name {
    font-size: 12px;
    color: #e5e5e5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #262626;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #404040;
}

/* Discussion and Discussion History */
.vce-ticket-details {
    background-color: #262626;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.vce-discussion-thread {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.vce-front-message {
    background-color: #262626;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    max-width: 85%;
}

.vce-front-message.admin {
    border-left: 4px solid #ffffff;
    background-color: #2e2e2e;
    align-self: flex-end;
}

.vce-front-message.user {
    border-left: 4px solid #a3a3a3;
    background-color: #1a1a1a;
    align-self: flex-start;
}

.vce-front-message-meta {
    font-size: 12px;
    color: #a3a3a3;
    margin-bottom: 8px;
    font-weight: 500;
}

.vce-front-message-meta strong {
    color: #ffffff;
}

.vce-front-message-text {
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #e5e5e5;
}

/* Status Badges Frontend */
.vce-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.vce-status-new { background-color: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.vce-status-progress { background-color: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.vce-status-completed { background-color: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.vce-status-cancelled { background-color: rgba(115, 115, 115, 0.1); color: #a3a3a3; border: 1px solid rgba(115, 115, 115, 0.2); }

/* Alerts and Notices */
.vce-alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 14px;
}

.vce-alert-success {
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.vce-alert-error {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.vce-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a3a3a3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.15s ease;
}

.vce-back-link:hover {
    color: #ffffff;
}
