/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'DrawFont';
    src: url(../fonts/DrawFont.ttf) format(truetype);
}

body {
    font-family: 'DrawFont';
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}



/* Header */
.header {
    background: linear-gradient(135deg, #f5f5f5 0%, #f5f5f5 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
   /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    position: relative;
    z-index: 100;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.icon-button:hover {
    
    transform: translateY(-2px);
   
}

.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
   
}

.header-logo {
    height: 50px;
}

.logo-header {
    height: 100%;
    object-fit: contain;
}

/* Toolbar */
.toolbar {
    background: white;
    padding: 15px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    
    
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-group label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.control {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'DrawFont';
}

.control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#color-picker {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#brush-size {
    width: 120px;
}

#size-display {
    font-weight: 500;
    color: #667eea;
    min-width: 40px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ea6666;
    color: white;
    font-family: 'DrawFont';
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(68, 68, 68, 0.3);
}

.btn-secondary {
    background: #e99324;
}

.btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #764ba2 0%, #764ba2 100%);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-third {
    text-decoration: none;
    background: linear-gradient(135deg, #00c210 0%, #00c210 100%);
}

.btn-third:hover {
    box-shadow: 0 4px 12px rgba(102, 234, 113, 0.4);
}

/* Área principal */
.main-content {
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.canvas-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

#drawing-canvas {
    display: block;
    background-image: url('assets/background.png');
    background-repeat: repeat;
    background-size: cover;
    cursor: crosshair;
    border-radius: 12px;
}

/* Logo arrastável */
.draggable-logo {
    position: absolute;
    width: 200px;
    height: auto;
    cursor: move;
    z-index: 10;
    transition: transform 0.2s ease;
   
}

.draggable-logo:hover {
    transform: scale(1.05);
}

.draggable-logo.hidden {
    display: none;
}

.draggable-logo.dragging {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* Responsividade */
@media (max-width: 768px) {
    .header {
        padding: 10px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .toolbar {
        padding: 15px 20px;
        justify-content: center;
    }

    .tool-group {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .main-content {
        padding: 20px;
    }

    #drawing-canvas {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .canvas-container {
        width: 100%;
        max-width: 100%;
    }

    .draggable-logo {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }

    .toolbar {
        padding: 10px 15px;
      /*  gap: 15px; */
    }

    .main-content {
        padding: 15px;
    }

    .social-icons {
        gap: 10px;
    }

    .icon-button {
        width: 35px;
        height: 35px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}



/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.canvas-container {
    animation: fadeIn 0.6s ease-out;
}

/* Estados de hover para melhor UX */
.tool-group:hover label {
    color: #667eea;
}

select.control {
    cursor: pointer;
}

select.control:hover {
    border-color: #667eea;
}

input[type="range"]:hover {
    border-color: #667eea;
}

/* Estilo para quando o canvas está sendo usado */
#drawing-canvas.drawing {
    cursor: none;
}

/* Indicador visual para o modo spray */
.spray-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    pointer-events: none;
    z-index: 20;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

