* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Navigation */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #34495e;
}

.info-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.info-btn:hover {
    background-color: #2980b9;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

/* Ad Types Grid */
.ad-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ad-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.ad-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.ad-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 2rem 0;
    background: white;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Content Sections */
.content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-block {
    margin-bottom: 2rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.content-block p {
    color: #555;
    line-height: 1.8;
}

.content-block ul {
    margin-left: 2rem;
    color: #555;
}

.content-block ul li {
    margin-bottom: 0.5rem;
}

/* Dialog Overlay */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Dialog */
.dialog {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

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

.dialog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-header h2 {
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Tabs */
.tabs {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    color: #666;
}

.tab-btn:hover {
    background-color: #e0e0e0;
}

.tab-btn.active {
    background-color: white;
    color: #3498db;
    font-weight: bold;
    border-bottom: 3px solid #3498db;
}

/* Tab Content */
.dialog-content {
    padding: 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.info-group {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.info-group:last-child {
    border-bottom: none;
}

.info-group label {
    font-weight: bold;
    color: #2c3e50;
    flex: 0 0 150px;
}

.info-group span {
    color: #555;
    flex: 1;
    word-break: break-word;
}

/* Storage and Cookie Management */
.storage-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.storage-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.storage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.storage-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.storage-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.storage-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.storage-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-small.btn-danger {
    background-color: rgba(231, 76, 60, 0.3);
    border-color: rgba(231, 76, 60, 0.5);
}

.btn-small.btn-danger:hover {
    background-color: rgba(231, 76, 60, 0.5);
}

.storage-content {
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.storage-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.storage-item {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #3498db;
    word-break: break-word;
}

.storage-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.25rem;
}

.storage-item span {
    color: #555;
    font-size: 0.9rem;
}

.empty-message {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

/* Ad Block Management */
.ad-management-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 2rem;
}

.ad-block {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.ad-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.block-name-input {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    border: 2px solid transparent;
    padding: 0.5rem;
    border-radius: 5px;
    flex: 1;
    min-width: 200px;
    transition: border-color 0.3s;
}

.block-name-input:hover,
.block-name-input:focus {
    border-color: #3498db;
    outline: none;
}

.block-actions {
    display: flex;
    gap: 0.5rem;
}

.block-description-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
}

.block-description-input:hover,
.block-description-input:focus {
    border-color: #3498db;
    outline: none;
}

.ad-spots {
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.ad-spots h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ad-spots > .btn-small {
    margin-top: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.ad-spots > .btn-small:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ad-spot {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
}

.spot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.spot-header span {
    font-weight: bold;
    color: #2c3e50;
}

.btn-tiny {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.btn-tiny.btn-danger {
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn-tiny.btn-danger:hover {
    background-color: #e74c3c;
    color: white;
}

.spot-code-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 0.75rem;
}

.spot-code-input:focus {
    outline: none;
    border-color: #3498db;
}

.ad-preview {
    background: white;
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 1rem;
    min-height: 100px;
    overflow: auto;
}

.ad-metadata {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.ad-metadata h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.auto-detected {
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: normal;
    font-style: italic;
}

.spot-label {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metadata-item label {
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}

.metadata-item input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.metadata-item input:focus {
    outline: none;
    border-color: #3498db;
}

/* Sidebar Layout */
.sidebar-layout {
    display: flex;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    font-size: 1.5rem;
    margin: 0;
}

.logo-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-btn:hover {
    background-color: rgba(52,152,219,0.2);
    transform: scale(1.1);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #3498db;
}

.sidebar-nav a.active {
    background-color: rgba(52,152,219,0.2);
    color: white;
    border-left-color: #3498db;
    font-weight: 600;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.info-btn-sidebar {
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.info-btn-sidebar:hover {
    background-color: #2980b9;
}

.main-wrapper {
    margin-left: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-bar {
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar h2 {
    margin: 0;
    color: #2c3e50;
}

.content-area {
    flex: 1;
    padding: 2rem;
    background-color: #f5f5f5;
}

/* Spots Grid */
.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.spot-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.spot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.spot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.spot-name-input {
    flex: 1;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    border: 2px solid transparent;
    padding: 0.5rem;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.spot-name-input:hover,
.spot-name-input:focus {
    border-color: #3498db;
    outline: none;
}

.spot-card-actions {
    display: flex;
    gap: 0.5rem;
}

.spot-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: bold;
    color: #555;
    min-width: 80px;
    font-size: 0.9rem;
}

.info-input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.info-input:focus {
    outline: none;
    border-color: #3498db;
}

.code-label {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.spot-code-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.spot-code-textarea:hover,
.spot-code-textarea:focus {
    border-color: #3498db;
    outline: none;
}

.spot-preview {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 1rem;
    min-height: 100px;
    overflow: auto;
}

/* Home Page Specific Styles */
.hero-home {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero-home h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-home p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.ad-types-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.storage-section-home {
    padding: 2rem 0;
    border-top: 2px solid #e0e0e0;
}

.storage-section-home h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Page Footer */
.page-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    color: rgba(255,255,255,0.8);
}

.footer-section ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.footer-section ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-wrapper {
        margin-left: 200px;
    }

    .spots-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .ad-types-grid {
        grid-template-columns: 1fr;
    }

    .info-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-group label {
        margin-bottom: 0.5rem;
    }

    .storage-grid {
        grid-template-columns: 1fr;
    }

    .storage-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ad-block-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .metadata-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== NEW Ad Block Styles ========== */

.ad-block-new {
    background: #ffffff;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ad-block-new:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52,152,219,0.2);
}

.ad-block-header-new {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #dee2e6;
    gap: 1rem;
    flex-wrap: wrap;
}

.ad-block-info {
    flex: 1;
    min-width: 250px;
}

.ad-block-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.ad-block-campaign {
    font-size: 0.95rem;
    color: #555;
}

.edit-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
    transition: color 0.3s;
}

.edit-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.ad-block-actions-new {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    background: white;
    color: #2c3e50;
    border: 2px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-action:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-1px);
}

.btn-action.btn-delete {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-action.btn-delete:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.ad-block-description {
    padding: 1rem 1.5rem;
    color: #555;
    font-style: italic;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.ad-block-preview {
    padding: 1.5rem;
}

.preview-label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.preview-content {
    background: #f8f9fa;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 150px;
    overflow: auto;
}

/* ========== Dialog Styles ========== */

.dialog-wide {
    max-width: 550px;
    width: 90%;
}

.dialog-wide .dialog-content {
    padding: 1rem 1.5rem;
}

.dialog-wide .dialog-header {
    padding: 1rem 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
}

.dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: 2px solid #3498db;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
}
