/* Main stylesheet for Telegram Duyuru Paneli */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar styles */
.sidebar {
    background-color: #2c3e50;
    color: white;
    min-height: 100vh;
}

.logo-area {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.logo-area img {
    max-width: 150px;
}

.nav-link {
    color: #ecf0f1;
    padding: 12px 15px;
    margin: 2px 0;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: #34495e;
    color: white;
}

.nav-link.active {
    background-color: #3498db;
    color: white;
}

.nav-link i {
    width: 25px;
    text-align: center;
}

/* Header styles */
.page-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
}

/* Content area styles */
.content-area {
    padding: 20px;
    min-height: calc(100vh - 120px);
}

/* Card styles */
.card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    background-color: #3498db;
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* Button styles */
.btn-telegram {
    background-color: #0088cc;
    color: white;
    border: none;
}

.btn-telegram:hover {
    background-color: #006699;
    color: white;
}

/* Template card styles */
.template-card {
    border-left: 4px solid #3498db;
    transition: all 0.3s;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Chat box */
.chat-box {
    max-height: 350px;
    overflow-y: auto;
    background-color: #e5e5e5;
    border-radius: 10px;
    padding: 15px;
}

.telegram-message {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Footer styles */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Telegram message preview */
.telegram-preview {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    font-family: 'Roboto', sans-serif;
}

.telegram-preview .preview-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.2;
}

.telegram-preview #preview-content, 
.telegram-preview #view-content {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1rem;
}

/* Emoji picker */
.emoji-picker {
    margin: 10px 0;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
}

.emoji-btn {
    margin: 5px;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.emoji-btn:hover {
    background-color: #e9ecef;
}

/* Statistics cards */
.stat-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #3498db;
}

/* Badge styles */
.badge-notification {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.channel-badge {
    background-color: #3498db;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 20px;
}

/* Empty state display */
.empty-state {
    text-align: center;
    padding: 50px 0;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Template variables */
#template-variables .mb-2 {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

#template-variables label {
    margin-bottom: 5px;
    font-weight: bold;
}

#template-variables input {
    padding: 8px;
    border-radius: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .logo-area {
        display: none;
    }
    
    .nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }
    
    .nav-item {
        margin-right: 10px;
    }
    
    .nav-link {
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .nav-link i {
        margin-right: 5px;
    }
    
    .page-header {
        position: sticky;
        top: 60px;
        z-index: 90;
    }
    
    .content-area {
        min-height: calc(100vh - 170px);
    }
}