/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #FFFFFF;
}

/* Navigation */
.navbar-custom {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.navbar-custom a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar-custom a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #1ABC9C;
}

/* Hero Section */
.hero-section {
    background-color: #1E1E1E;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #CCCCCC;
}

/* Auth Section */
.auth-section {
    margin-top: 30px;
}

.user-info {
    background: rgba(26, 188, 156, 0.1);
    border: 1px solid #1ABC9C;
    border-radius: 10px;
    padding: 25px;
    max-width: 500px;
    margin: 0 auto;
}

.user-greeting {
    color: #1ABC9C;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.cta-button {
    background: #1ABC9C;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px;
}

.cta-button:hover {
    background: #16a085;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid #1ABC9C;
    color: #1ABC9C;
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: #1ABC9C;
    color: white;
}

/* Dashboard Styles */
.dashboard-section {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.presentation-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(26, 188, 156, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.presentation-item:hover {
    border-color: #1ABC9C;
    background: rgba(26, 188, 156, 0.1);
}

.presentation-title {
    color: #1ABC9C;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.presentation-title:hover {
    color: #16a085;
    text-decoration: none;
}

.presentation-meta {
    color: #CCCCCC;
    font-size: 0.9rem;
}

.presentation-actions {
    margin-top: 10px;
}

.btn-sm-custom {
    background: transparent;
    border: 1px solid #1ABC9C;
    color: #1ABC9C;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-sm-custom:hover {
    background: #1ABC9C;
    color: white;
    text-decoration: none;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #121212;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #FFFFFF;
}

.feature-item {
    padding: 40px 20px;
}

.feature-item i {
    font-size: 3rem;
    color: #1ABC9C;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.feature-item p {
    font-size: 1rem;
    color: #CCCCCC;
    line-height: 1.6;
}

/* Integrations Section */
.integrations-section {
    padding: 80px 0;
    background-color: #1E1E1E;
    text-align: center;
}

.integrations-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.integrations-section p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #CCCCCC;
}

.integration-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.logo-item {
    text-align: center;
}

.logo-item img {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.logo-item p {
    font-size: 1rem;
    color: #FFFFFF;
    margin: 0;
}

/* Modal Styling */
.modal-content {
    background-color: #1E1E1E;
    color: #FFFFFF;
    border: 1px solid #444;
}

.modal-header, .modal-footer {
    border-color: #444;
}

.form-control {
    background-color: #333;
    border: 1px solid #555;
    color: #FFFFFF;
}

.form-control:focus {
    background-color: #333;
    border-color: #1ABC9C;
    color: #FFFFFF;
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
}

.btn-primary {
    background-color: #1ABC9C;
    border-color: #1ABC9C;
}

.btn-primary:hover {
    background-color: #16a085;
    border-color: #16a085;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-custom {
        position: static;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .integration-logos {
        flex-direction: column;
        gap: 30px;
    }
}

/* Auth Page Styles */
.auth-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.auth-title {
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

.back-link {
    color: white;
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    font-size: 1.1rem;
}

.back-link:hover {
    color: #f8f9fa;
    text-decoration: none;
}

#loader {
    text-align: center;
    color: #666;
    margin: 20px 0;
}

/* Dashboard Page Styles */
.dashboard-container {
    min-height: 100vh;
    padding: 40px 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFFFFF;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 500;
}

.token-btn {
    background: #FF9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.token-btn:hover {
    background: #F57C00;
    color: white;
    text-decoration: none;
}

.upload-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.logout-btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.presentations-section {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 30px;
    margin-top: 20px;
}

.presentations-loading {
    text-align: center;
    padding: 60px 0;
    color: #888;
}

.presentations-empty {
    text-align: center;
    padding: 60px 0;
    color: #888;
}

.presentations-error {
    text-align: center;
    padding: 60px 0;
    color: #dc3545;
}

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

.presentation-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.presentation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.presentation-title {
    color: #4CAF50;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.presentation-title:hover {
    color: #66BB6A;
    text-decoration: none;
}

/* Token Modal Styles */
.token-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.token-modal-content {
    background-color: #2a2a2a;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    border: 1px solid #444;
}

.token-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.token-modal-title {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.token-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.token-close-btn:hover {
    color: #FFFFFF;
}

.token-description {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.token-display-area {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.token-text {
    color: #4CAF50;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
    margin: 0;
    min-height: 80px;
    max-height: 80px;
    overflow: hidden;
}

.token-copy-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    width: 100px;
}

.token-copy-btn:hover {
    background: #45a049;
}

.token-copy-btn.copied {
    background: #2196F3;
}