:root {
    --primary-color: #C9A34A;
    --secondary-color: #333;
    --light-bg: #f5f5f5;
    --danger-color: #e53935;
    --success-color: #43a047;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.admin-title {
    display: flex;
    align-items: center;
}

.admin-title img {
    margin-right: 15px;
}

.admin-title h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #C9A34A 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-family: var(--font-family);
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #C9A34A 0%, #f4d03f 100%);
    color: #1a1a2e;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(201, 163, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 163, 74, 0.4);
}

.btn-secondary {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(25, 25, 35, 0.8);
    border-color: rgba(201, 163, 74, 0.3);
    transform: translateY(-2px);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Login Form */
.login-container {
    max-width: 450px;
    margin: 80px auto;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.login-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #C9A34A 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #C9A34A;
    background: rgba(255, 255, 255, 0.08);
}

.error-message {
    color: #ff8a80;
    font-size: 0.8rem;
    margin-top: 5px;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Flash messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 12px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.flash-error {
    background: rgba(229, 57, 53, 0.2);
    color: #ff8a80;
    border: 1px solid rgba(229, 57, 53, 0.3);
    backdrop-filter: blur(10px);
}

.flash-success {
    background: rgba(67, 160, 71, 0.2);
    color: #a5d6a7;
    border: 1px solid rgba(67, 160, 71, 0.3);
    backdrop-filter: blur(10px);
}

/* Submissions Table */
.submissions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);

}

.submissions-table th, 
.submissions-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submissions-table th {
    background: rgba(201, 163, 74, 0.2);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(201, 163, 74, 0.3);
}

.submissions-table td {
    color: rgba(255, 255, 255, 0.8);
}

.submissions-table tr:hover {
    background: rgba(25, 25, 35, 0.5);
}

.submissions-table .actions {
    display: flex;
    gap: 10px;
}

/* Service badges */
.service-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
}

.service-badge.ecommerce {
    background-color: #4CAF50;
}

.service-badge.ehandel {
    background-color: #4CAF50;
}

.service-badge.customer-service {
    background-color: #2196F3;
}

.service-badge.chatbot {
    background-color: #9C27B0;
}

.service-badge.other {
    background-color: #FF9800;
}

.submissions-table .action-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Color preview */
.color-preview {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-hex {
    font-size: 13px;
    color: #555;
    font-family: monospace;
}

/* Detail View */
.submission-detail {
    background: rgba(15, 15, 15, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, #C9A34A 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-section {
    margin-bottom: 30px;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #C9A34A 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    user-select: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.detail-item {
    margin-bottom: 15px;
}

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

.detail-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.detail-value {
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.detail-files {
    margin-top: 30px;
}

.file-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--secondary-color);
    margin-right: 10px;
    transition: var(--transition);
}

.file-link:hover {
    background-color: #e0e0e0;
}

.file-link svg {
    margin-right: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.empty-icon {
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
}

/* Small buttons */
.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Outline button */
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Dashboard footer */
.dashboard-footer {
    margin-top: 30px;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-actions {
        margin-top: 15px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Tillbaka-länk */
.back-link-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #C9A34A;
    border-color: rgba(201, 163, 74, 0.3);
}

.back-link svg {
    margin-right: 8px;
}

/* LLM Prompt styles */
.prompt-container {
    margin-top: 30px;
    position: relative;
}

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

.prompt-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.prompt-text {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    height: 500px;
    overflow-y: auto;
}

.prompt-text br {
    display: none;
}

.prompt-text br::after {
    content: "\A";
    white-space: pre;
}

.copy-prompt {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.copy-prompt:hover {
    background-color: #b08e3e;
}

/* Carrier credentials display styling */
.carrier-credentials-display {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

.carrier-cred-item {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
}

.carrier-cred-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
