/* Console section: Hide by default on mobile, show on desktop */
@media (min-width: 481px) {
    .console-section.hidden {
        display: block !important;
    }
}

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

.mb-20 {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .statistics-section,
    .console-section {
        order: 2;
    }
    
    .console-close-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 0 12px 0;
    }

    .logo {
        justify-content: center;
    }

    .dlang-bar {
        width: 100%;
        justify-content: center;
    }

    .dlang-flag {
        width: 20px;
        height: 14px;
    }
    
    .auth-section {
        align-items: center;
        width: 100%;
    }
    
    .header-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    #header-sample-cv-link {
        display: none !important;
    }
    
    .header-link-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
        min-height: 36px;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .statistics-section {
        padding: 15px 0 0 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .stat-container {
        gap: 8px;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }
    
    .stat-item {
        padding: 10px 8px;
        gap: 6px;
        min-height: 65px;
        flex-direction: row;
        align-items: center;
        border-radius: 6px;
    }
    
    .stat-icon {
        font-size: 1.4rem;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .stat-icon svg {
        width: 100%;
        height: 100%;
    }
    
    .stat-number {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 0.6rem;
        line-height: 1.3;
        word-break: break-word;
    }
    
    .form-section {
        padding: 15px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cv-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    .form-fields-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .console-section {
        padding: 0;
        margin-top: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .premium-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: left;
        padding: 18px;
    }
    
    .premium-icon {
        display: none;
    }
    
    .premium-content {
        flex: 1;
        min-width: 0; /* Text overflow için */
        margin: 0;
        padding: 0;
    }
    
    .premium-content h3 {
        font-size: 1rem;
        margin-bottom: 6px;
        white-space: normal;
    }
    
    .premium-content p {
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.4;
    }
    
    .premium-btn-small {
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 0.9rem;
        white-space: normal;
        width: 100%;
    }
    
    .file-status {
        padding: 14px 12px;
        margin-top: 6px;
        gap: 8px;
        min-height: 48px;
        height: auto;
        font-size: 16px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .file-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        overflow: hidden;
        flex: 1;
        max-width: none;
        width: auto;
    }
    
    .file-name {
        font-size: 0.85rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .file-size {
        font-size: 0.75rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .file-remove {
        background: #ff4444;
        color: white;
        border: none;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        min-width: 22px;
        max-width: 22px;
        flex: 0 0 22px;
        cursor: pointer;
        font-size: 14px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0;
        margin: 0;
        transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease, border 0.3s ease, opacity 0.3s ease;
    }
    
    .file-remove:hover {
        background: #cc3333;
        transform: scale(1.1);
    }
    
    .companies-modal-content {
        padding: 20px;
    }
    
    .company-pill {
        flex: 1 1 100%;
    }
    
    .cv-form {
        padding: 15px;
        margin: 10px 0;
        gap: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* iOS zoom önleme */
        padding: 14px 12px;
        min-height: 48px; /* Touch target için */
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .file-label {
        min-height: 48px;
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .send-delay-control {
        height: 48px;
    }
    
    .send-delay-btn {
        width: 48px;
        min-width: 48px;
    }
    
    .send-delay-display {
        font-size: 16px;
    }
    
    #vcv-file-upload,
    .vcv-file-upload {
        min-height: 48px;
        height: 48px;
    }
    
    .vcv-file-label {
        min-height: 48px;
        height: 48px;
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .company-item {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 15px;
    }
    
    .submit-btn,
    .cancel-btn,
    .premium-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 255, 136, 0.3);
        border-radius: 6px;
    }
    
    .modal-action-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .modal-action-btn {
        width: 100%;
        min-height: 48px;
        padding: 14px;
        font-size: 16px;
        touch-action: manipulation;
        border-radius: 6px;
    }
    
    .blacklist-form .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .blacklist-form .submit-btn,
    .blacklist-form .cancel-btn {
        width: 100%;
        flex: none;
    }
    
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }
    
    .contact-modal-content,
    .blacklist-modal-content,
    .tickets-modal-content,
    .user-panel-modal-content {
        margin: 5px;
        max-width: calc(100% - 10px);
        max-height: calc(100vh - 10px);
        border-radius: 8px;
    }
    
    .contact-modal-header,
    .blacklist-modal-header,
    .tickets-modal-header,
    .user-panel-modal-header {
        padding: 15px;
    }
    
    .contact-modal-header h3,
    .blacklist-modal-header h3,
    .tickets-modal-header h3,
    .user-panel-modal-header h3 {
        font-size: 1rem;
    }
    
    .contact-form,
    .blacklist-content,
    .tickets-content,
    .user-panel-content {
        padding: 15px;
    }
    
    .contact-form {
        padding: 15px;
    }
    
    .contact-form .form-group {
        margin-bottom: 10px;
    }
    
    .blacklist-content {
        padding: 15px;
    }
    
    .blacklist-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .tickets-filters {
        margin-bottom: 15px;
    }
    
    .tickets-filters select {
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }
    
    .ticket-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .ticket-replies {
        padding: 10px;
    }
    
    .reply-form {
        padding: 10px;
    }
    
    .reply-form textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    .user-panel-content {
        padding: 15px;
    }
    
    .user-info {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .applications-list {
        padding: 10px;
    }
    
    .application-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .application-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .application-status {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .application-details {
        font-size: 0.8rem;
    }
    
    .application-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }
    
    .application-actions button {
        width: 100%;
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 10px 0;
    }
    
    .footer-content {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-separator {
        display: inline;
        margin: 0 8px;
    }

    .phone-country-select {
        min-height: 48px;
        height: auto;
    }

    .multi-select-trigger {
        min-height: 48px;
        height: auto;
        padding: 14px 24px 14px 12px;
        font-size: 16px;
        background-size: 10px;
        background-position: right 10px center;
    }

    .multi-select-text {
        font-size: 16px;
    }

    .form-group select {
        background-size: 10px;
        background-position: right 10px center;
        padding-right: 28px;
    }
}

/* Tablet ve küçük desktop için console-section yüksekliği */
@media (min-width: 481px) and (max-width: 1024px) {
    .console-section {
        height: 500px;
        max-height: 500px;
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    /* Enhanced mobile styles - See mobile-enhancements.css for full implementation */
    .container {
        padding: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .header {
        margin-bottom: 16px;
    }
    
    .header-top {
        padding: 14px 0 12px 0;
        gap: 14px;
        border-bottom-width: 2px;
        border-bottom-color: rgba(0, 255, 136, 0.6);
    }
    
    .logo {
        column-gap: 10px;
        row-gap: 2px;
        align-items: center;
        justify-content: center;
    }

    .dlang-bar {
        width: 100%;
        justify-content: center;
        gap: 3px;
    }

    .dlang-flag {
        width: 18px;
        height: 13px;
    }
    
    .logo-text {
        font-size: 1.4rem;
        letter-spacing: 2px;
        text-shadow: 0 0 12px #00ff88;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
        filter: drop-shadow(0 0 12px #00ff88);
    }
    
    .auth-section {
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    
    .google-signin-btn {
        width: 100%;
        min-height: 32px;
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 4px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        gap: 6px;
    }
    
    .google-signin-btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    
    .header-links {
        display: none !important;
    }
    
    .header-link-btn {
        font-size: 0.75rem;
        padding: 10px 16px;
        min-height: 44px;
        border-radius: 8px;
        border-width: 1.5px;
        box-shadow: 0 2px 8px rgba(0, 255, 136, 0.2);
    }
    
    .statistics-section {
        padding: 0;
        margin-top: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .stat-container {
        gap: 4px;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }
    
    .stat-item {
        padding: 6px 4px;
        gap: 4px;
        min-height: 50px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-radius: 4px;
        border-width: 1px;
        background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, rgba(0, 204, 102, 0.06) 100%);
        box-shadow: 0 1px 4px rgba(0, 255, 136, 0.1);
    }
    
    .stat-icon {
        font-size: 1rem;
        width: 20px;
        height: 20px;
        margin-bottom: 3px;
        filter: drop-shadow(0 0 6px #00ff88);
    }
    
    .stat-icon svg {
        width: 100%;
        height: 100%;
    }
    
    .stat-number {
        font-size: 1rem;
        line-height: 1.1;
        word-break: break-word;
        text-shadow: 0 0 8px #00ff88;
        font-weight: 700;
    }
    
    .stat-label {
        font-size: 0.55rem;
        line-height: 1.2;
        word-break: break-word;
        text-align: center;
        color: rgba(0, 204, 102, 0.9);
        letter-spacing: 0.3px;
        margin-top: 0;
    }
    
    .form-section {
        padding: 12px 10px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 6px;
        border-width: 1px;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 12px rgba(0, 255, 136, 0.1);
    }
    
    .form-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
        text-shadow: 0 0 12px #00ff88;
        letter-spacing: 1.5px;
    }
    
    .form-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.5;
        color: rgba(244, 255, 249, 0.8);
    }
    
    .form-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    .form-description {
        padding: 8px;
        margin-bottom: 8px;
        border-radius: 3px;
    }
    
    .form-description p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .cv-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        gap: 8px;
    }
    
    .form-fields-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        gap: 3px;
        display: flex;
        flex-direction: column;
    }
    
    .form-group {
        gap: 3px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 0;
    }
    
    .form-group label {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.4px;
        color: #00ff88;
        text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    }
    
    .form-group input,
    .form-group select {
        padding: 5px 7px;
        font-size: 12px;
        min-height: 32px;
        border-radius: 3px;
        border-width: 1px;
        background-color: rgba(0, 0, 0, 0.6);
        color: #00ff88;
        transition: all 0.3s ease;
    }

    .multi-select-trigger {
        padding: 5px 24px 5px 7px;
        font-size: 12px;
        min-height: 32px;
        height: auto;
        border-radius: 3px;
        border-width: 1px;
        background-color: rgba(0, 0, 0, 0.6);
        color: #00ff88;
        transition: all 0.3s ease;
        background-size: 9px;
        background-position: right 7px center;
    }

    .multi-select-text {
        font-size: 12px;
    }

    .phone-country-select {
        min-height: 32px;
        height: auto;
    }

    .form-group select {
        background-size: 9px;
        background-position: right 7px center;
        padding-right: 24px;
    }
    
    .file-label {
        min-height: 32px;
        padding: 5px 7px;
        border-radius: 3px;
        border-width: 1px;
    }

    .file-status {
        min-height: 32px;
        height: auto;
        padding: 5px 7px;
        border-radius: 3px;
        font-size: 12px;
    }

    #vcv-file-upload,
    .vcv-file-upload {
        min-height: 32px;
        height: 32px;
    }

    .vcv-file-label {
        min-height: 32px;
        height: 32px;
        padding: 5px 7px;
    }
    
    .file-text {
        font-size: 12px;
    }
    
    .file-icon {
        font-size: 0.7rem;
    }
    
    .submit-btn,
    .premium-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.9rem;
        font-weight: 700;
        min-height: 42px;
        border-radius: 6px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 255, 136, 0.4);
        box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
        letter-spacing: 1px;
    }
    
    .form-actions {
        margin-top: 12px;
        gap: 8px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    

    
    .console-section {
        margin-top: 15px;
        padding: 0;
        height: 400px;
        max-height: 400px;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        min-height: 400px;
    }
    
    .console-container {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        flex: 1;
        overflow: hidden;
    }
    
    .console-content {
        padding: 10px;
        min-height: 0;
        flex: 1 1 0;
        font-size: 0.7rem;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .console-header {
        padding: 8px 12px;
    }
    
    .console-title {
        font-size: 0.8rem;
    }
    
    .timestamp {
        font-size: 0.65rem;
        min-width: 60px;
    }
    
    .log-text {
        font-size: 0.7rem;
    }
    
    .footer {
        padding: 10px 0;
    }
    
    .footer-content {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-separator {
        display: inline;
        margin: 0 8px;
    }
}

