/* Genel Stiller */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7fa;
    margin: 0;
    padding: 0;
}

/* Header */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.header .user-info {
    display: flex;
    align-items: center;
}

.header .user-info span {
    margin-right: 15px;
}

.header .logout-btn {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.header .logout-btn:hover {
    background-color: #34495e;
}

/* Sidebar */
.sidebar {
    background-color: #2c3e50;
    color: white;
    min-height: calc(100vh - 60px);
    padding-top: 20px;
}

.sidebar .nav-link {
    color: #ecf0f1;
    padding: 12px 15px;
    margin: 2px 0;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background-color: #34495e;
    color: white;
}

.sidebar .nav-link.active {
    background-color: #3498db;
    color: white;
}

.sidebar .nav-link i {
    width: 25px;
    text-align: center;
}

/* Content Area */
.content-area {
    padding: 20px;
}

.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;
}

.btn-telegram {
    background-color: #0088cc;
    color: white;
    border: none;
}

.btn-telegram:hover {
    background-color: #006699;
    color: white;
}

.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 {
    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);
}

/* Login Sayfası */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
}

.login-header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

.login-body {
    padding: 30px;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Önizleme, Emoji Picker ve Diğer Stiller */
.telegram-preview {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.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 {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1rem;
}

.telegram-preview #preview-image-container {
    margin-bottom: 15px;
}

.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;
}

.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;
}

.empty-state {
    text-align: center;
    padding: 50px 0;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .header .logo {
        font-size: 1.2rem;
    }

    .header .user-info span {
        font-size: 0.9rem;
        margin-right: 10px;
    }

    .header .logout-btn {
        font-size: 0.9rem;
        padding: 3px 8px;
    }

    .sidebar {
        min-height: auto;
        position: sticky;
        top: 60px;
        z-index: 100;
    }

    .nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }

    .nav-item {
        margin-right: 10px;
    }

    .nav-link {
        padding: 8px 12px;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .nav-link i {
        margin-right: 5px;
    }

    .content-area {
        padding: 15px;
    }

    .card-header {
        font-size: 1rem;
    }

    .card-body {
        padding: 15px;
    }

    .footer {
        position: relative;
        font-size: 0.9rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .table th, .table td {
        padding: 8px;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .telegram-preview {
        padding: 15px;
    }

    .telegram-preview .preview-header {
        font-size: 1.2rem;
    }

    .telegram-preview #preview-content {
        font-size: 0.9rem;
    }

    .login-container {
        margin: 50px auto;
        max-width: 90%;
    }

    .login-header h3 {
        font-size: 1.5rem;
    }

    .login-body {
        padding: 20px;
    }
}

#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;
}