/* Font Face Declarations */
@font-face {
    font-family: 'Alexandria';
    src: url('../fonts/Alexandria-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alexandria';
    src: url('../fonts/Alexandria-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    min-height: 100vh;
}

.container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: 100vh;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 360px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
        gap: 1rem;
    }
}

/* Control Panel */
.control-panel {
    background: #000000;
    border: 1px solid #26ff00;
    border-radius: 2px;
    padding: 1.5rem;
    height: fit-content;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    position: sticky;
    top: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #26ff00 #000000;
}

/* Custom scrollbar for webkit browsers */
.control-panel::-webkit-scrollbar {
    width: 6px;
}

.control-panel::-webkit-scrollbar-track {
    background: #000000;
}

.control-panel::-webkit-scrollbar-thumb {
    background: #26ff00;
    border-radius: 3px;
}

.control-panel::-webkit-scrollbar-thumb:hover {
    background: #1ecc00;
}

/* Responsive control panel */
@media (max-width: 1200px) {
    .control-panel {
        padding: 1.25rem;
        top: 1rem;
        max-height: calc(100vh - 2rem);
    }
}

@media (max-width: 992px) {
    .control-panel {
        position: static;
        padding: 1.5rem;
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .control-panel {
        padding: 1rem;
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.admin-info {
    flex: 1;
}

.admin-actions {
    margin-left: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.control-panel h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.subtitle {
    color: #26ff00;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Compact header on smaller screens */
@media (max-width: 1200px) {
    .control-panel h1 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .subtitle {
        margin-bottom: 1.25rem;
        font-size: 0.85rem;
    }
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Compact form layout */
@media (max-width: 1200px) {
    .form {
        gap: 0.875rem;
    }
    
    .form-group {
        gap: 0.35rem;
    }
}

.form-group label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    padding: 0.625rem;
    border: 1px solid #26ff00;
    border-radius: 2px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #000000;
    color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Compact input on smaller screens */
@media (max-width: 1200px) {
    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #26ff00;
    box-shadow: 0 0 0 2px rgba(38, 255, 0, 0.2);
}

.form-group input[type="text"]::placeholder {
    color: #666666;
}

.form-group input[type="file"] {
    padding: 0.625rem;
    border: 1px solid #26ff00;
    border-radius: 2px;
    font-size: 0.9rem;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Compact file input */
@media (max-width: 1200px) {
    .form-group input[type="file"] {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

.form-group input[type="file"]:hover {
    border-color: #26ff00;
    box-shadow: 0 0 0 2px rgba(38, 255, 0, 0.1);
}

.help-text {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 0.25rem;
}

/* Image Controls */
.image-controls {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #000000;
    border-radius: 2px;
    border: 1px solid #26ff00;
}

.image-controls h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #26ff00;
    margin-bottom: 1rem;
}

.form-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333333;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0.4rem 0;
}

/* Compact range input */
@media (max-width: 1200px) {
    .form-group input[type="range"] {
        margin: 0.3rem 0;
    }
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background: #26ff00;
    cursor: pointer;
    border: none;
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background: #26ff00;
    cursor: pointer;
    border: none;
}

.slider-value {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #26ff00;
    min-width: 60px;
    text-align: right;
}

/* Checkbox styling */
.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #000000;
    border: 1px solid #26ff00;
    border-radius: 2px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label:hover .checkmark {
    box-shadow: 0 0 0 2px rgba(38, 255, 0, 0.2);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #26ff00;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Compact buttons on smaller screens */
@media (max-width: 1200px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

.btn-primary {
    background: #000000;
    color: #26ff00;
    border: 1px solid #26ff00;
}

.btn-primary:hover:not(:disabled) {
    background: #26ff00;
    color: #000000;
    box-shadow: 0 0 0 2px rgba(38, 255, 0, 0.3);
}

.btn-secondary {
    background: #000000;
    color: #26ff00;
    border: 1px solid #26ff00;
}

.btn-secondary:hover:not(:disabled) {
    background: #26ff00;
    color: #000000;
    box-shadow: 0 0 0 2px rgba(38, 255, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-outline:hover:not(:disabled) {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: block;
}

.status-area {
    margin-top: 1rem;
}

.status-message {
    padding: 1rem;
    border-radius: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.status-message.success {
    background: rgba(38, 255, 0, 0.1);
    color: #26ff00;
    border: 1px solid #26ff00;
}

.status-message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid #ff0000;
}

.status-message.info {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #ffffff;
}

/* Preview Panel */
.preview-panel {
    background: #000000;
    border: 1px solid #26ff00;
    border-radius: 2px;
    padding: 1.5rem;
    height: fit-content;
}

.preview-panel h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #26ff00;
    margin-bottom: 1.25rem;
}

/* Responsive preview panel */
@media (max-width: 1200px) {
    .preview-panel {
        padding: 1.25rem;
    }
    
    .preview-panel h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 992px) {
    .preview-panel {
        padding: 1.5rem;
    }
    
    .preview-panel h2 {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 768px) {
    .preview-panel {
        padding: 1rem;
    }
    
    .preview-panel h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
    background: #000000;
    border: 1px solid #333333;
    border-radius: 2px;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    aspect-ratio: 16/9;
}

/* Responsive preview container */
@media (max-width: 1200px) {
    .preview-container {
        min-height: 300px;
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 992px) {
    .preview-container {
        min-height: 350px;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 768px) {
    .preview-container {
        min-height: 250px;
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

.svg-preview {
    max-width: 100%;
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-preview svg {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    aspect-ratio: 16/9;
}

.preview-note {
    font-size: 0.9rem;
    color: #666666;
    text-align: center;
    margin-top: 1rem;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #26ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Processing Loader */
.image-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 2px;
}

.geometric-loader {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.geometric-loader .square {
    width: 12px;
    height: 12px;
    background: #26ff00;
    border-radius: 2px;
    animation: geometricPulse 1.5s ease-in-out infinite;
}

.geometric-loader .square:nth-child(1) { animation-delay: 0s; }
.geometric-loader .square:nth-child(2) { animation-delay: 0.2s; }
.geometric-loader .square:nth-child(3) { animation-delay: 0.4s; }
.geometric-loader .square:nth-child(4) { animation-delay: 0.6s; }

@keyframes geometricPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.processing-text {
    color: #26ff00;
    font-family: 'Alexandria', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #000000;
    border: 1px solid #26ff00;
    border-radius: 2px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #26ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #26ff00;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #26ff00;
}

.modal-body {
    padding: 1.5rem;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
}

.modal-body p {
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Share URL Section */
.share-url-section,
.html-component-section,
.email-section {
    margin: 1.5rem 0;
}

.share-url-section label,
.html-component-section label,
.email-section label {
    display: block;
    font-weight: 600;
    color: #26ff00;
    margin-bottom: 0.5rem;
}

.input-copy-group,
.input-send-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.input-copy-group input,
.input-send-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #26ff00;
    border-radius: 2px;
    background: #000000;
    color: #ffffff;
    font-family: inherit;
}

.input-send-group input[type="email"]:focus {
    outline: none;
    border-color: #26ff00;
    box-shadow: 0 0 0 2px rgba(38, 255, 0, 0.2);
}

.input-send-group input[type="email"]::placeholder {
    color: #666666;
}

#html-component {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #26ff00;
    border-radius: 2px;
    background: #000000;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 2px;
}

.form .btn + .btn {
    margin-top: 0.5rem;
}

.btn.copied {
    background: #26ff00 !important;
    color: #000000 !important;
    white-space: nowrap;
    min-width: fit-content;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #26ff00;
}

.tab-btn {
    background: #000000;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    color: #26ff00;
    border-bottom-color: #26ff00;
}

.tab-btn.active {
    color: #26ff00;
    border-bottom-color: #26ff00;
    background: rgba(38, 255, 0, 0.05);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

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

/* Email Preview */
.email-preview-container {
    border: 1px solid #26ff00;
    border-radius: 2px;
    padding: 1rem;
    background: #000000;
    max-height: 400px;
    overflow-y: auto;
}

.email-preview {
    background: #ffffff;
    padding: 1rem;
    border-radius: 2px;
    color: #000000;
}

.email-preview * {
    max-width: 100% !important;
}

.email-preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Loading Text */
.loading-text {
    color: #26ff00;
    font-style: italic;
    text-align: center;
}

/* Empty State */
.empty-state {
    color: #666666;
    text-align: center;
    font-style: italic;
    padding: 2rem;
}

/* Speaker Card */
.speaker-card {
    background: #000000;
    border: 1px solid #26ff00;
    border-radius: 2px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.speaker-card:hover {
    box-shadow: 0 0 0 2px rgba(38, 255, 0, 0.3);
}

.speaker-info {
    flex: 1;
}

.speaker-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.speaker-company {
    color: #26ff00;
    margin-bottom: 0.5rem;
}

.speaker-url {
    font-size: 0.9rem;
    color: #666666;
    text-decoration: none;
    border: 1px solid #666666;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    display: inline-block;
    transition: all 0.2s ease;
}

.speaker-url:hover {
    color: #26ff00;
    border-color: #26ff00;
}

.speaker-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Danger Button */
.btn-danger {
    background: #000000;
    color: #ff0000;
    border: 1px solid #ff0000;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.btn-danger:hover:not(:disabled) {
    background: #ff0000;
    color: #000000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.3);
}

/* Link Button */
.btn-link {
    background: none;
    border: none;
    color: #26ff00;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .control-panel {
        position: relative;
        top: auto;
    }

    .preview-container {
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    .control-panel,
    .preview-panel {
        padding: 1.5rem;
    }

    .container {
        padding: 0.5rem;
        gap: 1rem;
    }

    .control-panel h1 {
        font-size: 1.5rem;
    }

    .preview-panel h2 {
        font-size: 1.3rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .input-copy-group {
        flex-direction: column;
    }

    .input-copy-group input {
        margin-bottom: 0.5rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .email-preview-container {
        max-height: 250px;
    }

    .speaker-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .speaker-info {
        text-align: center;
    }

    .speaker-actions {
        justify-content: center;
    }
} 