/* Advertisement Card Ana Stil */
.advertisement-card {
    width: 100%;
    border-radius: 0.625rem;
    box-shadow: 0rem 0.25rem 0.75rem 0rem rgba(0, 0, 0, 0.17);
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Card içeriğinin görünür olması için z-index */
.advertisement-card .card-img-top,
.advertisement-card .card-body {
    position: relative;
    z-index: 99;
}

/* Beyaz katman (içeriğin üzerinde görünmesi için) */
.advertisement-card::after {
    content: "";
    background: #ffffff;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    z-index: 0;
    border-radius: inherit;
}

/* Dönen border için pseudo element */
.advertisement-card::before {
    content: "";
    background-image: conic-gradient(#ff7400 20deg, transparent 120deg);
    min-width: 1000px !important;
    width: 1000px !important;
    height: 1000px !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    z-index: 0;
    opacity: 0;
}

/* Rotate animasyonu */
@keyframes advertisementRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* ads_active class'ı olanlarda sürekli animasyon */
.advertisement-card.ads_active::before {
    animation: advertisementRotate 4s linear infinite;
    opacity: 1;
}

/* ads_active class'ı olanlarda hover shadow */
.advertisement-card.ads_active:hover {
    box-shadow: 0rem 0.25rem 0.75rem 0rem rgba(255, 116, 0, 0.48);
}

/* ads_active olmayanlar için hover efekti YOK */
.advertisement-card:not(.ads_active):hover::before {
    animation: none;
    opacity: 0;
}

/* Resim container stilleri */
.advertisement-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    z-index: 99;
}

/* Resim stilleri */
.advertisement-card-wrapper img {
    transition: all 0.3s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Resim hover efekti */
.advertisement-card-wrapper:hover img {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 575.98px) {
    .advertisement-card {
        width: 100%;
        padding: 0.215rem;
    }
    .advertisement-card-image {
        height: 200px;
    }
}
.designer-action-btn {
    background-color: #EF6C00;
    color: #fff !important;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    height: 42px;
    min-height: 42px;
    min-width: 42px;
    line-height: 1.2;
    transition: opacity 0.2s ease, background 0.2s;
}
.designer-action-btn svg {
    width: 18px;
    height: 18px;
}
.designer-action-btn:hover, .designer-action-btn:focus {
    opacity: 0.5;
    background-color: #EF6C00;
}
.designer-action-btn-outline {
    background: #fff;
    color: #EF6C00 !important;
    border: 1.5px solid #EF6C00;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    height: 42px;
    min-height: 42px;
    min-width: 42px;
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s;
}
.designer-action-btn-outline svg {
    width: 18px;
    height: 18px;
    transition: fill 0.2s;
}
.designer-action-btn-outline:hover, .designer-action-btn-outline:focus {
    background: rgba(239,108,0,1);
    color: #fff !important;
}
.designer-action-btn-outline:hover svg path,
.designer-action-btn-outline:focus svg path {
    fill: #fff !important;
}

.custom-tab-nav {
    gap: 0;
    padding-left:0;
    border-bottom: 1px solid #dedede;
    margin-bottom: 40px;
}
.custom-tab-nav .nav-item {
    margin-bottom: 0;
    margin-right: 16px;
    position: relative;
}
.custom-tab-nav .nav-item:last-child {
    margin-right: 0;
}
.custom-tab-btn {
    background:transparent;
    border:none;
    padding:0 0 8px 0;
    font-size:13px;
    outline:none;
    box-shadow:none;
    position:relative;
    transition: color 0.13s;
}
.custom-tab-btn .custom-tab-underline {
    display: none;
}
.custom-tab-btn.active {
    background-color: transparent !important;
}
.custom-tab-btn.active .custom-tab-text,
.custom-tab-btn:focus .custom-tab-text {
    color: #FF7400 !important;
    font-weight: 500;
}
.custom-tab-btn.active svg {
    opacity: 1 !important;
}
.custom-tab-btn.active svg path,
.custom-tab-btn.active svg rect,
.custom-tab-btn.active svg circle {
    stroke: #FF7400 !important;
}
.custom-tab-btn.active svg path[fill],
.custom-tab-btn.active svg rect[fill],
.custom-tab-btn.active svg circle[fill] {
    stroke: #FF7400 !important;
}
.custom-tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #FF7400;
    width: 100%;
}
.custom-tab-btn .custom-tab-text {
    font-size:13px;
    color:#828282;
    font-weight:400;
    transition: color 0.13s;
}
.custom-tab-btn:focus {outline:none;}

.custom-tab-btn:hover {
    background-color: transparent !important;
}
.custom-tab-btn:hover .custom-tab-text {
    color: #FF7400 !important;
    font-weight: 500;
}
.custom-tab-btn:hover svg {
    opacity: 1 !important;
}
.custom-tab-btn:hover svg path,
.custom-tab-btn:hover svg rect,
.custom-tab-btn:hover svg circle {
    stroke: #FF7400 !important;
}
.custom-tab-btn:hover svg path[fill],
.custom-tab-btn:hover svg rect[fill],
.custom-tab-btn:hover svg circle[fill] {
    stroke: #FF7400 !important;
}
.custom-tab-btn:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #FF7400;
    width: 100%;
}
.profilePictureInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0
}
.select2-container .select2-selection--multiple {
    min-height: 48px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #6366f1;
    border: none;
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 4px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 5px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fee;
}

/* Advertisement Detail Page Styles */
.ad-detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
}
.ad-detail-content {
    padding: 40px 0;
}
.package-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
    height: 100%;
    position: relative; 
}
.package-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}
.package-type-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.designer-card {
    border-radius: 12px;
    padding: 24px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 5;
}
.stat-item {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    background: #f8f9fa;
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}
.stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-top: 4px;
}
#ads_description {
    line-height: 1.8;
}
#ads_description ul{
    list-style: disc !important;
}
#ads_description ol{
    list-style: decimal !important;
}
.custom_text-small {
    font-size: 14px;
}

.my-ads-container {
    min-height: 80vh;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 40px 0 80px;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 15px;
    color: #64748b;
}

.create-ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #FF7400 0%, #ff9a44 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 116, 0, 0.3);
}

.create-ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 116, 0, 0.4);
    color: #fff;
}

.ad-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.ad-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.ad-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-card-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.ad-card-status.pending {
    background: rgba(245, 158, 11, 0.9);
    color: #fff;
}

.ad-card-status.approved {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.ad-card-status.rejected {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.ad-card-status.inactive {
    background: rgba(100, 116, 139, 0.9);
    color: #fff;
}

.ad-card-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(245, 158, 11, 0.95);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ad-card-body {
    padding: 20px;
}

.ad-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.ad-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.ad-card-price .from {
    font-size: 13px;
    color: #94a3b8;
}

.ad-card-price .amount {
    font-size: 20px;
    font-weight: 700;
    color: #FF7400;
}

.ad-card-price .to {
    font-size: 14px;
    color: #64748b;
}

.ad-card-stats {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.ad-card-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.ad-card-stat svg {
    width: 16px;
    height: 16px;
}

.ad-card-footer {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.ad-card-date {
    font-size: 12px;
    color: #94a3b8;
}

.rejection-note {
    margin-top: 12px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
}

.rejection-note-title {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 4px;
}

.rejection-note-text {
    font-size: 13px;
    color: #7f1d1d;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #94a3b8;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 24px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.stat-card-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.stat-card.pending .stat-card-value { color: #f59e0b; }
.stat-card.approved .stat-card-value { color: #10b981; }
.stat-card.rejected .stat-card-value { color: #ef4444; }