/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #F0F4FF 0%, #E6EEFF 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 35px;
}

.header-content {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 5px 10px 25px 10px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(224, 231, 255, 0.6);
}


.header-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: #3B82F6;
    border-bottom-right-radius: 100px;
    z-index: 1;
}

.header-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: #3B82F6;
    border-top-left-radius: 100px;
    z-index: 1;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.header-icon i {
    font-size: 2.5rem;
    color: white;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.header-subtitle {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Actions Section */
.actions-section {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    min-width: 300px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    font-size: 1rem;
    border: 1px solid rgb(182 199 255 / 80%);
    border-radius: 16px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0px 0px 8px 2px rgba(79, 70, 229, 0.1);
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.search-input:focus {
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #0061ff;
    font-size: 1.1rem;
    z-index: 1;
}

.clear-btn {
    position: absolute;
    right: 15px;
    font-size: 16px;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

.create-btn {
    background: linear-gradient(135deg, #2f75e6 0%, #438ae1 100%);
    color: white;
    border: none;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 0 8px 1px rgba(59, 130, 246, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
}

.create-btn i {
    font-size: 1.2rem;
}

/* Groups Grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.group-card {
    background: white;
    border-radius: 24px;
    min-height: 230px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 1px 0px rgba(99, 102, 241, 0.1);
    border: 1px solid rgb(183 196 242 / 58%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.group-card.hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

.group-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 70%);
    z-index: 0;
    border-radius: 0 0 0 100%;
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
    border-color: rgba(199, 210, 254, 0.8);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.group-avatar {
    width: 50px;
    height: 50px;
    background: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 4px;
}

/* Remove background when image is present */
.group-avatar:has(.group-avatar-image) {
    background: none;
}

.group-avatar .group-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Resmi kutuya sığdırmak ve oranını korumak için */
    border-radius: 0;
    /* Dairesel kenarları kaldırdık */
    position: relative;
}

.group-avatar .group-avatar-image.group-avatar-image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: group-avatar-image-shimmer 1.5s infinite;
    border: 2px dashed #ccc;
}

.group-avatar .group-avatar-image.group-avatar-image-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    border: 2px solid #3B82F6;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: avatar-loading-spin 1s linear infinite;
}

.group-avatar span {
    /* Resim olmadığında gösterilen harf için stil */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

@keyframes group-avatar-image-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes avatar-loading-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.group-info {
    flex: 1;
    margin-left: 15px;
    position: relative;
    z-index: 1;
}

/* Gizli grup stilleri */
.private-group-lock {
    height: 23px;
    width: 20px;
    position: absolute;
    top: 8px;
    right: 0px;
}

.private-group {
    opacity: 0.8;
    cursor: default !important;
}

.private-group:hover {
    transform: none !important;
    box-shadow: 0 1px 1px 0px rgba(99, 102, 241, 0.1) !important;
    border-color: rgb(183 196 242 / 58%) !important;
}

.group-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
    line-height: 1.4;
    position: relative;
    padding-right: 21px;
    z-index: 1;
}

.group-id {
    font-size: 0.9rem;
    color: #718096;
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 98%;
}

.group-stats {
    position: absolute;
    left: 18px;
    bottom: 15px;
    margin: 0;
    gap: 15px;
    border-top: 1px solid rgb(185 191 198 / 50%);
    width: 100%;
    padding-top: 10px;
    z-index: 1;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat-item:hover {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.stat-item i {
    color: #3381ff;
    font-size: 16px;
}

.member-count {
    background: transparent;
    color: #1f74fd;
    padding: 0;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.85rem;
    margin-left: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.memberCount {
    color: #2c72e4;
    font-size: 1rem;
    font-weight: 600;
}

.member-count:hover {
    color: #3B82F6;
}

/* LoadingSpinner */
.group-loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: #2563EB;
}

.group-load-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(37, 99, 235, 0.2);
    border-left-color: #2563EB;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #2563EB;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.05);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.group-modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(224, 231, 255, 0.8);
    max-height: 80vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.group-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #38BDF8, #60A5FA);
}

.group-modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 70%);
    z-index: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px 20px 30px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    z-index: 1;
}

.modal-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #38BDF8 0%, #60A5FA 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38BDF8;
}

.modal-body {
    padding: 25px 30px;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #4a5568;
    font-size: 0.95rem;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #2196f3;
    font-size: 1rem;
    z-index: 1;
}

.form-group textarea+.input-icon {
    top: 22px;
    transform: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border-radius: 12px;
    border: 2px solid #64b5f6;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9ff;
    outline: none;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.15);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.25);
    background: white;
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(56, 189, 248, 0.4);
    background: linear-gradient(135deg, #0EA5E9 0%, #60A5FA 100%);
}

.btn-secondary {
    background: white;
    color: #38a8f8;
    border: 2px solid #38BDF8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.groupDescription {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-width: 90%;
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.5;
    margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header-icon {
        width: 70px;
        height: 70px;
    }

    .header-icon i {
        font-size: 2rem;
    }
    
    .header-title {
        font-size: 2rem;
    }

    .actions-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        min-width: auto;
    }


    .group-card {
        padding: 22px;
    }


    .group-desc {
        width: 100%;
        margin-top: -10px;
        margin-bottom: 10px;
    }

    .groupDescription {
        max-width: 95%;
    }

    .group-modal-content {
        width: 95%;
        margin: 15px;
    }

    .modal-header {
        padding: 25px 22px 18px 22px;
    }
    
    .modal-body {
        padding: 22px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    }

    @media (max-width: 480px) {
        .header-content {
            padding: 30px 20px;
        }

        .header-icon {
            width: 60px;
            height: 60px;
        }

        .header-icon i {
            font-size: 1.8rem;
        }

        .header-title {
            font-size: 1.8rem;
        }

        .header-subtitle {
            font-size: 1rem;
        }

        .search-input {
            padding: 14px 15px 14px 50px;
        }

        .create-btn {
            padding: 14px 20px;
            font-size: 0.95rem;
        }

        .modal-icon {
            width: 35px;
            height: 35px;
            font-size: 1rem;
        }

        .modal-header h2 {
            font-size: 1.3rem;
        }
    }


.input-container input[type="file"] {
    display: none;
}

.input-container .file-input-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #e3f2fd;
    border: 2px solid #64b5f6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.15);
}

.input-container .file-input-label:hover {
    background-color: #bbdefb;
    border-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.25);
    transform: translateY(-1px);
}

.input-container .file-input-label .file-input-text {
    margin-left: 10px;
    color: #1976d2;
    font-weight: 500;
}

.input-container .file-input-label .file-input-icon {
    color: #2196f3;
    font-size: 16px;
}

.input-container select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    /* Sağ tarafta ikon için daha fazla boşluk */
    border: 2px solid #64b5f6;
    border-radius: 8px;
    background-color: #f8f9ff;
    color: #1976d2;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231976d2' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    /* Ok ikonunun pozisyonu */
    background-size: 12px;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.15);
}

.input-container .select-wrapper {
    position: relative;
    width: 100%;
}

.input-container .select-wrapper .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2196f3;
    z-index: 1;
}

.input-container .select-wrapper select {
    padding-left: 50px;
    /* Sol tarafta ikon için boşluk */
}

/* Şifre göster/gizle ikonu */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.password-toggle:hover {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
    transform: translateY(-50%) scale(1.05);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle i {
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

/* Şifre alanı için özel padding */
.form-group input[type="password"] {
    padding-right: 60px; /* Göz ikonu için sağ tarafta boşluk */
}

/* Hover efekti */
.input-container select:hover {
    background-color: #e3f2fd;
    border-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.25);
}

/* Focus efekti */
.input-container select:focus {
    outline: none;
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.25);
    background-color: white;
}

/* Grup Resmi Seçimi */
.input-container {
    position: relative;
}

.ready-images-btn {
    background: #fff;
    color: #1976d2;
    border: 2px solid #64b5f6;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: all 0.3s ease;
    height: 40px;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.3);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    overflow: hidden;
    min-width: 40px;
    width: 40px;
}

.ready-images-btn:hover {
    background: #f5fbff;
    border-color: #42a5f5;
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 2px 6px rgba(66, 165, 245, 0.4);
}

.ready-images-btn:active {
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(66, 165, 245, 0.3);
}

.ready-images-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.ready-images-btn:hover i {
    transform: scale(1.1);
}

/* Hazır Görseller Modal */
.ready-images-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.ready-images-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ready-images-modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    width: 500px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ready-images-modal-content .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.ready-images-modal-content .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ready-images-modal-content .modal-header h3 i {
    color: #6c757d;
}

.ready-images-modal-content .modal-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ready-images-modal-content .modal-close-btn:hover {
    background-color: #e9ecef;
    color: #495057;
}

.ready-images-modal-content .modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 5px;
}

.avatar-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    justify-self: center;
}

.avatar-item:hover {
    border-color: #5b9bd5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.avatar-item.selected {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.avatar-item:hover img {
    transform: scale(1.05);
}

.avatar-item .check-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-item.selected .check-icon {
    opacity: 1;
}

/* Hata mesajı stilleri */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    white-space: pre-line;
    line-height: 1.4;
}

.error-message:before {
    content: "⚠️ ";
    margin-right: 4px;
}

/* User Group Styles */
.user-group {
    border: 2px solid #3B82F6 !important;
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%) !important;
    position: relative;
}

.user-group-badge {
    position: absolute;
    top: 5px;
    right: 0px;
    background: #3B82F6;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    z-index: 10;
}

.user-group-badge i {
    font-size: 10px;
}

/* Admin badge - gold/orange background */
.user-group-badge.admin-badge {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

/* Member badge - blue background (default) */
.user-group-badge.member-badge {
    background: #3B82F6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.user-group:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2) !important;
}

/* Join Group Button Styles */
.join-group-btn {
    background: linear-gradient(135deg, #4B8EF5 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: absolute;
    bottom: 0px;
    right: 33px;
    z-index: 10;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.join-group-btn:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    border-color: rgba(255, 255, 255, 0.3);
}

.join-group-btn i {
    font-size: 16px;
    font-weight: 600;
}

.group-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

